Skip to content

Commit b46ac28

Browse files
committed
feat(helm): add securityContext to registry init containers
1 parent 36b5752 commit b46ac28

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

helm/kube-image-keeper/templates/registry-statefulset.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ spec:
3333
{{- if .Values.registry.persistence.enabled }}
3434
initContainers:
3535
- name: setup-dirs
36+
securityContext:
37+
{{- toYaml .Values.registry.securityContext | nindent 12 }}
3638
image: "{{ .Values.registry.image.repository }}:{{ .Values.registry.image.tag }}"
3739
imagePullPolicy: {{ .Values.registry.image.pullPolicy }}
3840
command:
@@ -46,6 +48,8 @@ spec:
4648
- mountPath: /var/lib/registry
4749
name: data
4850
- name: garbage-collector
51+
securityContext:
52+
{{- toYaml .Values.registry.securityContext | nindent 12 }}
4953
image: "{{ .Values.registry.image.repository }}:{{ .Values.registry.image.tag }}"
5054
imagePullPolicy: {{ .Values.registry.image.pullPolicy }}
5155
command:

0 commit comments

Comments
 (0)