Skip to content

Commit

Permalink
feat: added env vars to k8s files
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghadi8 committed Oct 1, 2024
1 parent 31d697c commit 86a4c22
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions k8s-staging/staging-secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ spec:
key: ENCRYPT_SALT
- objectName: justaname_environment
key: JUSTANAME_ENVIRONMENT
- objectName: resend_api_key
key: RESEND_API_KEY


parameters:
Expand Down Expand Up @@ -107,3 +109,5 @@ spec:
objectAlias: encrypt_salt
- path: JUSTANAME_ENVIRONMENT
objectAlias: justaname_environment
- path: RESEND_API_KEY
objectAlias: resend_api_key
5 changes: 5 additions & 0 deletions k8s-staging/vc-api-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions k8s/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ spec:
key: ENCRYPT_KEY
- objectName: encrypt_salt
key: ENCRYPT_SALT
- objectName: resend_api_key
key: RESEND_API_KEY


parameters:
Expand Down Expand Up @@ -103,3 +105,5 @@ spec:
objectAlias: encrypt_key
- path: ENCRYPT_SALT
objectAlias: encrypt_salt
- path: RESEND_API_KEY
objectAlias: resend_api_key
5 changes: 5 additions & 0 deletions k8s/vc-api-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 86a4c22

Please sign in to comment.