Skip to content

Commit 87590eb

Browse files
committed
Add support for init containers
1 parent d36d6bf commit 87590eb

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

charts/single-container/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.2.4
18+
version: 0.2.5
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

charts/single-container/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ spec:
3030
serviceAccountName: {{ include "single-container.serviceAccountName" . }}
3131
securityContext:
3232
{{- toYaml .Values.podSecurityContext | nindent 8 }}
33+
{{- if .Values.initContainers }}
34+
initContainers:
35+
{{- toYaml .Values.initContainers | nindent 8 }}
36+
{{- end }}
3337
containers:
3438
- name: {{ .Chart.Name }}
3539
securityContext:

charts/single-container/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ serviceAccount:
2323
# If not set and create is true, a name is generated using the fullname template
2424
name: ""
2525

26+
# initContainers: []
27+
2628
podspec: {}
2729
# env:
2830
# - name: BlobStorage

0 commit comments

Comments
 (0)