Merge branch 'feature/sensors_credentials' into 'master'

Added ARVE credentials to OKD

See merge request cara/caimira!398
This commit is contained in:
Andre Henriques 2022-09-19 11:14:00 +02:00
commit 6aeadc2797
2 changed files with 19 additions and 0 deletions

View file

@ -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[@]}"

View file

@ -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