Skip to content

Commit

Permalink
app: allow specifing arbitrary envs (#76)
Browse files Browse the repository at this point in the history
* app: allow specifing arbitrary envs

* include initContainer
  • Loading branch information
domdepasquale committed Apr 23, 2024
1 parent 948f825 commit c2e2dc9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/application-core/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 3.1.0
version: 3.2.0

maintainers:
- name: Dominic DePasquale
8 changes: 8 additions & 0 deletions charts/application-core/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ spec:
- {{ . }}
{{- end }}
{{- end }}
{{- if or .Values.env }}
env:
{{- .Values.env | toYaml | nindent 12 }}
{{- end }}
{{- if or .Values.externalSecret.enabled .Values.configMap.enabled .Values.extraConfigMaps .Values.extraSecrets }}
envFrom:
{{- if .Values.configMap.enabled }}
Expand Down Expand Up @@ -109,6 +113,10 @@ spec:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- end }}
{{- if or .Values.env }}
env:
{{- .Values.env | toYaml | nindent 12 }}
{{- end }}
{{- if or .Values.externalSecret.enabled .Values.configMap.enabled .Values.extraConfigMaps .Values.extraSecrets }}
envFrom:
{{- if .Values.configMap.enabled }}
Expand Down
6 changes: 6 additions & 0 deletions charts/application-core/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ configMap:
enabled: false
data: {}

env: []
# - name: FOO
# value: BAR
# - name: BAZ
# value: $(FOO)-$(FOO)

# extraConfigMaps and extraSecrets to be mounted as envFrom
extraConfigMaps: []
extraSecrets: []
Expand Down

0 comments on commit c2e2dc9

Please sign in to comment.