Browse Source
fix(helm): set securitycontext for idx move initcontainer if enabled (#7331)
master
Dennis Witt
2 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
3 additions and
0 deletions
-
k8s/charts/seaweedfs/templates/volume/volume-statefulset.yaml
|
|
@ -88,6 +88,9 @@ spec: |
|
|
|
- name: {{ $dir.name }} |
|
|
|
mountPath: /{{ $dir.name }} |
|
|
|
{{- end }} |
|
|
|
{{- if $volume.containerSecurityContext.enabled }} |
|
|
|
securityContext: {{- omit $volume.containerSecurityContext "enabled" | toYaml | nindent 12 }} |
|
|
|
{{- end }} |
|
|
|
{{- end }} |
|
|
|
{{- if $volume.initContainers }} |
|
|
|
{{ tpl (printf "{{ $volumeName := \"%s\" }}%s" $volumeName $volume.initContainers) $ | indent 8 | trim }} |
|
|
|