Skip to content

Commit

Permalink
workaround for init container mongo secret
Browse files Browse the repository at this point in the history
  • Loading branch information
dfry committed Mar 27, 2024
1 parent d1e9409 commit 635171e
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions accounts-and-balances-builtin-ledger-grpc-svc/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
#general config params
config:
mongo_url: mongodb://root:mongodb@mongodb:27017
# db_secret:
### Example config for an existing secret
# mongo_url_secret:
# name: mongo-secret
# key: password
mongo_url_secret:
name: mongo-secret
key: password
replicaCount: 1

image:
Expand Down Expand Up @@ -156,15 +155,11 @@ initContainers: |
echo ====================;
echo MongoDB ok!;
env:
- name: mongo_url
{{- if .Values.config.mongo_url_secret }}
- name: MONGO_URL
valueFrom:
secretKeyRef:
name: '{{ .Values.config.mongo_url_secret.name }}'
key: '{{ .Values.config.mongo_url_secret.key }}'
{{- else }}
value: {{ .Values.config.mongo_url }}
{{- end }}
- name: wait-for-platform-configuration-svc
image: curlimages/curl:8.3.0
Expand Down

0 comments on commit 635171e

Please sign in to comment.