mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-11-08 11:36:13 +08:00
fix(helm): set securitycontext for idx move initcontainer if enabled (#7331)
This commit is contained in:
@@ -88,6 +88,9 @@ spec:
|
|||||||
- name: {{ $dir.name }}
|
- name: {{ $dir.name }}
|
||||||
mountPath: /{{ $dir.name }}
|
mountPath: /{{ $dir.name }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if $volume.containerSecurityContext.enabled }}
|
||||||
|
securityContext: {{- omit $volume.containerSecurityContext "enabled" | toYaml | nindent 12 }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if $volume.initContainers }}
|
{{- if $volume.initContainers }}
|
||||||
{{ tpl (printf "{{ $volumeName := \"%s\" }}%s" $volumeName $volume.initContainers) $ | indent 8 | trim }}
|
{{ tpl (printf "{{ $volumeName := \"%s\" }}%s" $volumeName $volume.initContainers) $ | indent 8 | trim }}
|
||||||
|
|||||||
Reference in New Issue
Block a user