Skip to content

Commit bfae5a3

Browse files
authored
Merge pull request #1210 from snyk/fix/allow-initContainers-configuration
fix: allow init containers to be configured
2 parents f94c201 + 13fb121 commit bfae5a3

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

snyk-monitor/templates/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ spec:
5252
{{- end }}
5353
serviceAccountName: {{ include "snyk-monitor.name" . }}
5454
restartPolicy: Always
55+
{{- if .Values.initContainers.enabled }}
5556
initContainers:
5657
- name: volume-permissions
5758
image: "{{ .Values.initContainerImage.repository }}:{{ .Values.initContainerImage.tag }}"
@@ -77,6 +78,7 @@ spec:
7778
{{- if .Values.extraInitContainers -}}
7879
{{ tpl (toYaml .Values.extraInitContainers) . | nindent 8 }}
7980
{{- end }}
81+
{{- end }}
8082
containers:
8183
- name: {{ include "snyk-monitor.name" . }}
8284
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"

snyk-monitor/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ sysdig:
148148
strategy:
149149
type: RollingUpdate
150150

151+
initContainers:
152+
enabled: true
153+
151154
# Additional volumes for the deployment, available to all containers
152155
extraVolumes: []
153156
# - name: my-empty-dir

0 commit comments

Comments
 (0)