diff options
| author | Dennis Witt <94747795+wittdennis@users.noreply.github.com> | 2025-10-16 21:24:41 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-16 12:24:41 -0700 |
| commit | 8fe14d1368b947d0bcfe33bdd3b613edb2810737 (patch) | |
| tree | 35a9c506d6601a75c4958c9637856f0ed3e79cd0 /k8s/charts | |
| parent | d22e3d3495b962c7654414f7fa88b07ee06e4c16 (diff) | |
| download | seaweedfs-8fe14d1368b947d0bcfe33bdd3b613edb2810737.tar.xz seaweedfs-8fe14d1368b947d0bcfe33bdd3b613edb2810737.zip | |
fix(helm): set securitycontext for idx move initcontainer if enabled (#7331)
Diffstat (limited to 'k8s/charts')
| -rw-r--r-- | k8s/charts/seaweedfs/templates/volume/volume-statefulset.yaml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/k8s/charts/seaweedfs/templates/volume/volume-statefulset.yaml b/k8s/charts/seaweedfs/templates/volume/volume-statefulset.yaml index 197401608..29a035a2b 100644 --- a/k8s/charts/seaweedfs/templates/volume/volume-statefulset.yaml +++ b/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 }} |
