Skip to content

Commit 0d73a96

Browse files
committed
add environment
1 parent c9ac6c1 commit 0d73a96

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

install-bundler/bundler/templates/statefulset.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ spec:
3131
- |
3232
gcloud secrets versions access latest --secret="{{.Values.secretName}}" > /gcpsecrets/config-passphrase
3333
gcloud secrets versions access latest --secret="{{.Values.configSecretName}}" > /gcpsecrets/config.json.enc
34-
gcloud secrets versions access latest --secret="{{.Values.plainConfigSecretName}}" > /gcpsecrets/{{.Values.env}}.json
34+
gcloud secrets versions access latest --secret="{{.Values.plainConfigSecretName}}" > /gcpsecrets/{{.Values.environment}}.json
3535
volumeMounts:
3636
- name: gcpsecrets
3737
mountPath: /gcpsecrets
@@ -84,7 +84,7 @@ spec:
8484
value: {{ .Values.CHAIN_ID | quote }}
8585

8686
- name: NODE_ENV
87-
value: {{ .Values.env }}
87+
value: {{ .Values.environment }}
8888

8989
envFrom:
9090
{{- if and (.Values.datadog.enable) ( eq .Values.datadog.gke_cluste_type "standard") -}}
@@ -106,8 +106,8 @@ spec:
106106
subPath: "config.json.enc"
107107

108108
- name: gcpsecrets
109-
mountPath: "/home/nonroot/bundler/config/{{.Values.env}}.json"
110-
subPath: "{{.Values.env}}.json"
109+
mountPath: "/home/nonroot/bundler/config/{{.Values.environment}}.json"
110+
subPath: "{{.Values.environment}}.json"
111111

112112
- name: gcpsecrets
113113
mountPath: /gcpsecrets

install-bundler/configs/bundler-tw-production.cfg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
ENV=production
1+
ENV=prod
2+
environment=production
23
NAMESPACE="trustwallet"
34
PROJECT_ID="prj-biconomy-prod-001"
45
IMAGE="us-docker.pkg.dev/prj-biconomy-prod-001/bundler/bundler"

install-bundler/configs/bundler-tw-staging.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
ENV=staging
2+
environment=staging
23
NAMESPACE="bundler-tw-staging"
34
PROJECT_ID="biconomy-prod"
45
IMAGE="us-docker.pkg.dev/biconomy-prod/bundler/trustwallet"

0 commit comments

Comments
 (0)