Skip to content

Commit

Permalink
fix: fix k8s files according to new env config
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghadi8 committed Oct 14, 2024
1 parent d1758e1 commit db78ed8
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 48 deletions.
20 changes: 8 additions & 12 deletions k8s-staging/staging-secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ spec:
key: INFURA_PROJECT_ID
- objectName: signing_private_key
key: SIGNING_PRIVATE_KEY
- objectName: signing_private_key_sepolia_domain
key: SIGNING_PRIVATE_KEY_SEPOLIA_DOMAIN
- objectName: environment
key: ENVIRONMENT
- objectName: api_domain
Expand All @@ -45,14 +47,10 @@ spec:
key: DISCORD_CLIENT_SECRET
- objectName: ens_domain
key: ENS_DOMAIN
- objectName: chain_id
key: CHAIN_ID
- objectName: ens_domain_sepolia
key: ENS_DOMAIN_SEPOLIA
- 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
Expand All @@ -73,6 +71,8 @@ spec:
objectAlias: infura_project_id
- path: SIGNING_PRIVATE_KEY
objectAlias: signing_private_key
- path: SIGNING_PRIVATE_KEY_SEPOLIA_DOMAIN
objectAlias: signing_private_key_sepolia_domain
- path: ENVIRONMENT
objectAlias: environment
- path: API_DOMAIN
Expand All @@ -95,14 +95,10 @@ spec:
objectAlias: discord_client_secret
- path: ENS_DOMAIN
objectAlias: ens_domain
- path: CHAIN_ID
objectAlias: chain_id
- path: ENS_DOMAIN_SEPOLIA
objectAlias: ens_domain_sepolia
- 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
Expand Down
19 changes: 7 additions & 12 deletions k8s-staging/vc-api-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ spec:
secretKeyRef:
name: foosecret-verifications
key: SIGNING_PRIVATE_KEY
- name: SIGNING_PRIVATE_KEY_SEPOLIA_DOMAIN
valueFrom:
secretKeyRef:
name: foosecret-verifications
key: SIGNING_PRIVATE_KEY_SEPOLIA_DOMAIN
- name: ENVIRONMENT
valueFrom:
secretKeyRef:
Expand Down Expand Up @@ -98,26 +103,16 @@ spec:
secretKeyRef:
name: foosecret-verifications
key: ENS_DOMAIN
- name: CHAIN_ID
- name: ENS_DOMAIN_SEPOLIA
valueFrom:
secretKeyRef:
name: foosecret-verifications
key: CHAIN_ID
key: ENS_DOMAIN_SEPOLIA
- 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:
Expand Down
20 changes: 8 additions & 12 deletions k8s/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ spec:
key: INFURA_PROJECT_ID
- objectName: signing_private_key
key: SIGNING_PRIVATE_KEY
- objectName: signing_private_key_sepolia_domain
key: SIGNING_PRIVATE_KEY_SEPOLIA_DOMAIN
- objectName: environment
key: ENVIRONMENT
- objectName: api_domain
Expand All @@ -45,14 +47,10 @@ spec:
key: DISCORD_CLIENT_SECRET
- objectName: ens_domain
key: ENS_DOMAIN
- objectName: chain_id
key: CHAIN_ID
- objectName: ens_domain_sepolia
key: ENS_DOMAIN_SEPOLIA
- 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
Expand All @@ -71,6 +69,8 @@ spec:
objectAlias: infura_project_id
- path: SIGNING_PRIVATE_KEY
objectAlias: signing_private_key
- path: SIGNING_PRIVATE_KEY_SEPOLIA_DOMAIN
objectAlias: signing_private_key_sepolia_domain
- path: ENVIRONMENT
objectAlias: environment
- path: API_DOMAIN
Expand All @@ -93,14 +93,10 @@ spec:
objectAlias: discord_client_secret
- path: ENS_DOMAIN
objectAlias: ens_domain
- path: CHAIN_ID
objectAlias: chain_id
- path: ENS_DOMAIN_SEPOLIA
objectAlias: ens_domain_sepolia
- 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
Expand Down
19 changes: 7 additions & 12 deletions k8s/vc-api-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ spec:
secretKeyRef:
name: foosecret-verifications
key: SIGNING_PRIVATE_KEY
- name: SIGNING_PRIVATE_KEY_SEPOLIA_DOMAIN
valueFrom:
secretKeyRef:
name: foosecret-verifications
key: SIGNING_PRIVATE_KEY_SEPOLIA_DOMAIN
- name: ENVIRONMENT
valueFrom:
secretKeyRef:
Expand Down Expand Up @@ -98,26 +103,16 @@ spec:
secretKeyRef:
name: foosecret-verifications
key: ENS_DOMAIN
- name: CHAIN_ID
- name: ENS_DOMAIN_SEPOLIA
valueFrom:
secretKeyRef:
name: foosecret-verifications
key: CHAIN_ID
key: ENS_DOMAIN_SEPOLIA
- 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:
Expand Down

0 comments on commit db78ed8

Please sign in to comment.