Skip to content

Commit f35f7df

Browse files
Merge branch 'main' into custom-probes
2 parents a2ac4e0 + f158323 commit f35f7df

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ their default values.
116116
| `extraEnvVars` | Additional environment variables to the pod | `[]` |
117117
| `livenessProbe` | Optional livenessProbe definition | `nil` |
118118
| `readinessProbe` | Optional readinessProbe definition | `nil` |
119+
| `initContainers` | Init containers to be created in the pod | `[]` |
119120

120121
Specify each parameter using the `--set key=value[,key=value]` argument to
121122
`helm install`.

templates/deployment.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ spec:
4848
securityContext:
4949
fsGroup: {{ .Values.securityContext.fsGroup }}
5050
runAsUser: {{ .Values.securityContext.runAsUser }}
51+
{{- end }}
52+
{{- with .Values.initContainers }}
53+
initContainers:
54+
{{- toYaml . | nindent 8 }}
5155
{{- end }}
5256
containers:
5357
- name: {{ .Chart.Name }}

values.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -223,3 +223,9 @@ extraEnvVars: []
223223
# readinessProbe:
224224
# tcpSocket:
225225
# port: 5000
226+
227+
initContainers: []
228+
## Init containers to add to the Deployment
229+
# - name: init
230+
# image: busybox
231+
# command: []

0 commit comments

Comments
 (0)