From 79c009065050343657220b925bb9f33bb52f4889 Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Wed, 18 Oct 2023 17:03:22 +0200 Subject: [PATCH] added the ability to configure the omdb api key --- .../charts/backend/templates/deployments/backend-v2.yaml | 6 ++++++ deployment/charts/backend/values.yaml | 1 + 2 files changed, 7 insertions(+) diff --git a/deployment/charts/backend/templates/deployments/backend-v2.yaml b/deployment/charts/backend/templates/deployments/backend-v2.yaml index 4ff23739..a96ffd80 100644 --- a/deployment/charts/backend/templates/deployments/backend-v2.yaml +++ b/deployment/charts/backend/templates/deployments/backend-v2.yaml @@ -46,6 +46,11 @@ spec: value: "true" - name: APNS_P8_FILE_PATH value: /etc/apns_auth_key.p8 + - name: OMDB_API_KEY + valueFrom: + secretKeyRef: + name: backend-api-keys + key: OMDB_API_KEY - name: SENTRY_DSN valueFrom: secretKeyRef: @@ -147,6 +152,7 @@ metadata: app.kubernetes.io/part-of: tum-campus-app app.kubernetes.io/name: backend-v2 data: + OMDB_API_KEY: {{ $.Values.backend.omdbApiKey | b64enc }} CAMPUS_API_TOKEN: {{ $.Values.backend.campusApiToken | b64enc }} SENTRY_DSN: {{ $.Values.backend.sentry.dsn | b64enc }} apns_auth_key.p8: {{ $.Values.backend.apns.auth_key }} diff --git a/deployment/charts/backend/values.yaml b/deployment/charts/backend/values.yaml index 68c26483..1d2fa341 100644 --- a/deployment/charts/backend/values.yaml +++ b/deployment/charts/backend/values.yaml @@ -42,6 +42,7 @@ mariadb: backend: + omdbApiKey: changeme-changeme-changeme campusApiToken: changeme-changeme-changeme sentry: dsn: changeme-changeme-changeme