Skip to content

Commit

Permalink
feat: added env vars to k8s
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghadi8 committed Sep 16, 2024
1 parent a698685 commit ba108c3
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 3 deletions.
2 changes: 0 additions & 2 deletions k8s-staging/staging-secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,5 +103,3 @@ spec:
objectAlias: encrypt_key
- path: ENCRYPT_SALT
objectAlias: encrypt_salt
25 changes: 25 additions & 0 deletions k8s-staging/vc-api-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,31 @@ spec:
secretKeyRef:
name: foosecret-verifications
key: CHAIN_ID
- name: JWT_SECRET
valueFrom:
secretKeyRef:
name: foosecret-verifications
key: JWT_SECRET
- name: SIWE_DOMAIN
valueFrom:
secretKeyRef:
name: foosecret-verifications
key: SIWE_DOMAIN
- name: SIWE_ORIGIN
valueFrom:
secretKeyRef:
name: foosecret-verifications
key: SIWE_ORIGIN
- name: ENCRYPT_KEY
valueFrom:
secretKeyRef:
name: foosecret-verifications
key: ENCRYPT_KEY
- name: ENCRYPT_SALT
valueFrom:
secretKeyRef:
name: foosecret-verifications
key: ENCRYPT_SALT
---
apiVersion: v1
kind: Service
Expand Down
21 changes: 20 additions & 1 deletion k8s/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,16 @@ spec:
key: ENS_DOMAIN
- objectName: chain_id
key: CHAIN_ID
- objectName: jwt_secret
key: JWT_SECRET
- objectName: siwe_domain
key: SIWE_DOMAIN
- objectName: siwe_origin
key: SIWE_ORIGIN
- objectName: encrypt_key
key: ENCRYPT_KEY
- objectName: encrypt_salt
key: ENCRYPT_SALT


parameters:
Expand Down Expand Up @@ -83,4 +93,13 @@ spec:
objectAlias: ens_domain
- path: CHAIN_ID
objectAlias: chain_id
- path: JWT_SECRET
objectAlias: jwt_secret
- path: SIWE_DOMAIN
objectAlias: siwe_domain
- path: SIWE_ORIGIN
objectAlias: siwe_origin
- path: ENCRYPT_KEY
objectAlias: encrypt_key
- path: ENCRYPT_SALT
objectAlias: encrypt_salt
25 changes: 25 additions & 0 deletions k8s/vc-api-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,31 @@ spec:
secretKeyRef:
name: foosecret-verifications
key: CHAIN_ID
- name: JWT_SECRET
valueFrom:
secretKeyRef:
name: foosecret-verifications
key: JWT_SECRET
- name: SIWE_DOMAIN
valueFrom:
secretKeyRef:
name: foosecret-verifications
key: SIWE_DOMAIN
- name: SIWE_ORIGIN
valueFrom:
secretKeyRef:
name: foosecret-verifications
key: SIWE_ORIGIN
- name: ENCRYPT_KEY
valueFrom:
secretKeyRef:
name: foosecret-verifications
key: ENCRYPT_KEY
- name: ENCRYPT_SALT
valueFrom:
secretKeyRef:
name: foosecret-verifications
key: ENCRYPT_SALT
---
apiVersion: v1
kind: Service
Expand Down

0 comments on commit ba108c3

Please sign in to comment.