From 86a4c2247d2c324eb9721b33105aa23ebf36d104 Mon Sep 17 00:00:00 2001 From: Ghadi Mhawej Date: Tue, 1 Oct 2024 16:44:00 +0300 Subject: [PATCH] feat: added env vars to k8s files --- k8s-staging/staging-secrets.yaml | 4 ++++ k8s-staging/vc-api-deployment.yaml | 5 +++++ k8s/secrets.yaml | 4 ++++ k8s/vc-api-deployment.yaml | 5 +++++ 4 files changed, 18 insertions(+) diff --git a/k8s-staging/staging-secrets.yaml b/k8s-staging/staging-secrets.yaml index c63988d..15cf58b 100644 --- a/k8s-staging/staging-secrets.yaml +++ b/k8s-staging/staging-secrets.yaml @@ -59,6 +59,8 @@ spec: key: ENCRYPT_SALT - objectName: justaname_environment key: JUSTANAME_ENVIRONMENT + - objectName: resend_api_key + key: RESEND_API_KEY parameters: @@ -107,3 +109,5 @@ spec: objectAlias: encrypt_salt - path: JUSTANAME_ENVIRONMENT objectAlias: justaname_environment + - path: RESEND_API_KEY + objectAlias: resend_api_key diff --git a/k8s-staging/vc-api-deployment.yaml b/k8s-staging/vc-api-deployment.yaml index f1b3fca..e5f39a7 100644 --- a/k8s-staging/vc-api-deployment.yaml +++ b/k8s-staging/vc-api-deployment.yaml @@ -133,6 +133,11 @@ spec: secretKeyRef: name: foosecret-verifications key: JUSTANAME_ENVIRONMENT + - name: RESEND_API_KEY + valueFrom: + secretKeyRef: + name: foosecret-verifications + key: RESEND_API_KEY --- apiVersion: v1 kind: Service diff --git a/k8s/secrets.yaml b/k8s/secrets.yaml index 0f1cb41..1028c08 100644 --- a/k8s/secrets.yaml +++ b/k8s/secrets.yaml @@ -57,6 +57,8 @@ spec: key: ENCRYPT_KEY - objectName: encrypt_salt key: ENCRYPT_SALT + - objectName: resend_api_key + key: RESEND_API_KEY parameters: @@ -103,3 +105,5 @@ spec: objectAlias: encrypt_key - path: ENCRYPT_SALT objectAlias: encrypt_salt + - path: RESEND_API_KEY + objectAlias: resend_api_key diff --git a/k8s/vc-api-deployment.yaml b/k8s/vc-api-deployment.yaml index 4dcaaf0..590dc9f 100644 --- a/k8s/vc-api-deployment.yaml +++ b/k8s/vc-api-deployment.yaml @@ -128,6 +128,11 @@ spec: secretKeyRef: name: foosecret-verifications key: ENCRYPT_SALT + - name: RESEND_API_KEY + valueFrom: + secretKeyRef: + name: foosecret-verifications + key: RESEND_API_KEY --- apiVersion: v1 kind: Service