Skip to content

Commit

Permalink
app: allow overriding of initcontainer image (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
domdepasquale authored Aug 14, 2024
1 parent 4a25060 commit d7a775c
Show file tree
Hide file tree
Showing 3 changed files with 7 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: 4.1.0
version: 4.2.0

maintainers:
- name: Dominic DePasquale
4 changes: 4 additions & 0 deletions charts/application-core/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ spec:
- name: {{ include "application-core.fullname" . }}-init
securityContext:
{{- toYaml .Values.initContainer.securityContext | nindent 12 }}
{{- if .Values.initContainer.image }}
image: "{{ .Values.initContainer.image.repository }}:{{ .Values.initContainer.image.tag }}"
{{- else }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
{{- end }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- if .Values.initContainer.args }}
args:
Expand Down
2 changes: 2 additions & 0 deletions charts/application-core/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,8 @@ initContainer:
args: []
command: []
resources: {}
# repository: nginx
# tag: ""
securityContext:
allowPrivilegeEscalation: false
capabilities:
Expand Down

0 comments on commit d7a775c

Please sign in to comment.