Skip to content

Commit

Permalink
adds .Values.controller.extraEnvVars value to helm chart (#24)
Browse files Browse the repository at this point in the history
users can pass in extra envvars as necessary
  • Loading branch information
sonnysideup authored May 18, 2022
1 parent 3eadae5 commit b7ee1a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ spec:
args:
- start
- --config=/etc/hephaestus/config.yaml
{{- with .Values.controller.extraEnvVars }}
env:
{{- include "common.tplvalues.render" (dict "value" . "context" $) | nindent 12 }}
{{- end }}
ports:
- name: health
containerPort: {{ .Values.controller.healthProbePort }}
Expand Down
3 changes: 3 additions & 0 deletions deployments/helm/hephaestus/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ controller:
# Additional volumes
extraVolumes: []

# Extra environment variables provided to the controller container
extraEnvVars: []

# Number of manager instances to run. Leader election will be enabled
# whenever this value is greater than 1; this ensures that only one instance
# is active at a time.
Expand Down

0 comments on commit b7ee1a8

Please sign in to comment.