We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0c935a commit 4af06deCopy full SHA for 4af06de
ci/helm-chart/templates/deployment.yaml
@@ -35,8 +35,9 @@ spec:
35
securityContext:
36
fsGroup: {{ .Values.securityContext.fsGroup }}
37
{{- end }}
38
- {{- if and .Values.volumePermissions.enabled .Values.persistence.enabled }}
+ {{- if or (and .Values.volumePermissions.enabled .Values.persistence.enabled) .Values.extraInitContainers }}
39
initContainers:
40
+ {{- if and .Values.volumePermissions.enabled .Values.persistence.enabled }}
41
- name: init-chmod-data
42
image: busybox:latest
43
imagePullPolicy: IfNotPresent
@@ -50,6 +51,7 @@ spec:
50
51
volumeMounts:
52
- name: data
53
mountPath: /home/coder
54
+ {{- end }}
55
{{- if .Values.extraInitContainers }}
56
{{ tpl .Values.extraInitContainers . | indent 6}}
57
0 commit comments