From 37d022a1efe356e3eef2f6ca12807f4bffe7fa3b Mon Sep 17 00:00:00 2001 From: Luis Aleixo Date: Mon, 19 Sep 2022 09:45:18 +0200 Subject: [PATCH 1/2] added env variables --- app-config/caimira-webservice/app.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app-config/caimira-webservice/app.sh b/app-config/caimira-webservice/app.sh index 9ea2862a..0d0452c8 100755 --- a/app-config/caimira-webservice/app.sh +++ b/app-config/caimira-webservice/app.sh @@ -13,6 +13,10 @@ if [[ "$APP_NAME" == "caimira-webservice" ]]; then if [ ! -z "$CAIMIRA_CALCULATOR_PREFIX" ]; then args+=("--prefix=${CAIMIRA_CALCULATOR_PREFIX}") fi + + export "ARVE_API_KEY"="$ARVE_API_KEY" + export "ARVE_CLIENT_ID"="$ARVE_CLIENT_ID" + export "ARVE_CLIENT_SECRET"="$ARVE_CLIENT_SECRET" echo "Starting the caimira webservice with: python -m caimira.apps.calculator ${args[@]}" python -m caimira.apps.calculator "${args[@]}" From ad154be9132f324bf45ba2c84e187c9960adb0e3 Mon Sep 17 00:00:00 2001 From: Luis Aleixo Date: Mon, 19 Sep 2022 09:52:47 +0200 Subject: [PATCH 2/2] defined secrets --- app-config/openshift/deploymentconfig.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/app-config/openshift/deploymentconfig.yaml b/app-config/openshift/deploymentconfig.yaml index 520fa088..5e23cede 100644 --- a/app-config/openshift/deploymentconfig.yaml +++ b/app-config/openshift/deploymentconfig.yaml @@ -209,6 +209,21 @@ value: /calculator-cern - name: CAIMIRA_THEME value: caimira/apps/templates/cern + - name: ARVE_CLIENT_ID + valueFrom: + secretKeyRef: + key: ARVE_CLIENT_ID + name: arve-api + - name: ARVE_CLIENT_SECRET + valueFrom: + secretKeyRef: + key: ARVE_CLIENT_SECRET + name: arve-api + - name: ARVE_API_KEY + valueFrom: + secretKeyRef: + key: ARVE_API_KEY + name: arve-api image: '${PROJECT_NAME}/caimira-webservice' ports: - containerPort: 8080