Skip to content

Commit

Permalink
feat: env vars support through values file (#811)
Browse files Browse the repository at this point in the history
Signed-off-by: Milos Backonja <milos.backonja@iohk.io>
  • Loading branch information
milosbackonja authored Dec 12, 2023
1 parent 0eea501 commit 2486dde
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions infrastructure/charts/agent/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,10 @@ spec:
key: root-token
optional: false
{{- end }}
{{- range $key, $value := .Values.env }}
- name: {{ $key }}
value: {{ $value | quote }}
{{- end }}
{{- if .Values.server.keycloak.enabled }}
- name: KEYCLOAK_ENABLED
value: "true"
Expand Down
3 changes: 3 additions & 0 deletions infrastructure/charts/agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ keycloak:
mountPath: /opt/bitnami/keycloak/data/import
readOnly: true

# Additional environment variables to be added to the server container
env: {}

# It is configured for deployment and postgresql objects of prism-agent
affinity:
nodeAffinity: {}
Expand Down

0 comments on commit 2486dde

Please sign in to comment.