Skip to content

Commit 4e5a6bc

Browse files
committed
[bitnami/seaweedfs] fix chown on volume-permissions (master & volume)
Signed-off-by: Geoffrey Gontard <[email protected]>
1 parent b1afd5e commit 4e5a6bc

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

bitnami/seaweedfs/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ name: seaweedfs
5050
sources:
5151
- https://github.com/bitnami/charts/tree/main/bitnami/seawwedfs
5252
- https://github.com/bitnami/containers/tree/main/bitnami/seaweedfs
53-
version: 6.0.2
53+
version: 6.0.3

bitnami/seaweedfs/templates/master/statefulset.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ spec:
9292
args:
9393
- -ec
9494
- |
95-
find {{ .Values.master.persistence.mountPath }} -mindepth 1 -maxdepth 1 -not -name ".snapshot" -not -name "lost+found" | xargs chown -R {{ .Values.master.containerSecurityContext.runAsUser }}:{{ .Values.master.podSecurityContext.fsGroup }}
95+
mkdir -p {{ .Values.master.persistence.mountPath }}
96+
chown -R {{ .Values.master.containerSecurityContext.runAsUser }}:{{ .Values.master.podSecurityContext.fsGroup }} {{ .Values.master.persistence.mountPath }}
97+
find {{ .Values.master.persistence.mountPath }} -mindepth 1 -maxdepth 1 -not -name ".snapshot" -not -name "lost+found" | xargs -r chown -R {{ .Values.master.containerSecurityContext.runAsUser }}:{{ .Values.master.podSecurityContext.fsGroup }}
9698
{{- if .Values.volumePermissions.containerSecurityContext.enabled }}
9799
securityContext: {{- include "common.compatibility.renderSecurityContext" (dict "secContext" .Values.volumePermissions.containerSecurityContext "context" $) | nindent 12 }}
98100
{{- end }}

bitnami/seaweedfs/templates/volume/statefulset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ spec:
9494
- |
9595
{{- $chown := printf "%d:%d" (int .Values.volume.containerSecurityContext.runAsUser) (int .Values.volume.podSecurityContext.fsGroup) }}
9696
{{- range .Values.volume.dataVolumes }}
97-
find {{ .mountPath }} -mindepth 1 -maxdepth 1 -not -name ".snapshot" -not -name "lost+found" | xargs chown -R {{ $chown }}
97+
find {{ .mountPath }} -mindepth 1 -maxdepth 1 -not -name ".snapshot" -not -name "lost+found" | xargs -r chown -R {{ $chown }}
9898
{{- end }}
9999
{{- if .Values.volumePermissions.containerSecurityContext.enabled }}
100100
securityContext: {{- include "common.compatibility.renderSecurityContext" (dict "secContext" .Values.volumePermissions.containerSecurityContext "context" $) | nindent 12 }}

0 commit comments

Comments
 (0)