mirror of
https://github.com/bitnami/charts.git
synced 2026-03-27 07:17:25 +08:00
[bitnami/seaweedfs] fix chown on volume-permissions (master & volume) (#36386)
* [bitnami/seaweedfs] fix chown on volume-permissions (master & volume) Signed-off-by: Geoffrey Gontard <geoffrey.gontard@cosmotech.com> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com> --------- Signed-off-by: Geoffrey Gontard <geoffrey.gontard@cosmotech.com> Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com> Co-authored-by: Bitnami Bot <bitnami.bot@broadcom.com>
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
# Changelog
|
||||
|
||||
## 6.0.1 (2025-08-26)
|
||||
## 6.0.3 (2025-12-01)
|
||||
|
||||
* [bitnami/seaweedfs] :zap: :arrow_up: Update dependency references ([#36196](https://github.com/bitnami/charts/pull/36196))
|
||||
* [bitnami/seaweedfs] fix chown on volume-permissions (master & volume) ([#36386](https://github.com/bitnami/charts/pull/36386))
|
||||
|
||||
## <small>6.0.1 (2025-08-26)</small>
|
||||
|
||||
* [bitnami/seaweedfs] :zap: :arrow_up: Update dependency references (#36196) ([add6559](https://github.com/bitnami/charts/commit/add65594ab195e0e9bf4b31d0da7ab75898f4466)), closes [#36196](https://github.com/bitnami/charts/issues/36196)
|
||||
|
||||
## 6.0.0 (2025-08-18)
|
||||
|
||||
|
||||
@@ -50,4 +50,4 @@ name: seaweedfs
|
||||
sources:
|
||||
- https://github.com/bitnami/charts/tree/main/bitnami/seawwedfs
|
||||
- https://github.com/bitnami/containers/tree/main/bitnami/seaweedfs
|
||||
version: 6.0.2
|
||||
version: 6.0.3
|
||||
|
||||
@@ -92,7 +92,8 @@ spec:
|
||||
args:
|
||||
- -ec
|
||||
- |
|
||||
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 }}
|
||||
mkdir -p {{ .Values.master.persistence.mountPath }}
|
||||
chown -R {{ .Values.master.containerSecurityContext.runAsUser }}:{{ .Values.master.podSecurityContext.fsGroup }} {{ .Values.master.persistence.mountPath }}
|
||||
{{- if .Values.volumePermissions.containerSecurityContext.enabled }}
|
||||
securityContext: {{- include "common.compatibility.renderSecurityContext" (dict "secContext" .Values.volumePermissions.containerSecurityContext "context" $) | nindent 12 }}
|
||||
{{- end }}
|
||||
|
||||
@@ -94,7 +94,7 @@ spec:
|
||||
- |
|
||||
{{- $chown := printf "%d:%d" (int .Values.volume.containerSecurityContext.runAsUser) (int .Values.volume.podSecurityContext.fsGroup) }}
|
||||
{{- range .Values.volume.dataVolumes }}
|
||||
find {{ .mountPath }} -mindepth 1 -maxdepth 1 -not -name ".snapshot" -not -name "lost+found" | xargs chown -R {{ $chown }}
|
||||
find {{ .mountPath }} -mindepth 1 -maxdepth 1 -not -name ".snapshot" -not -name "lost+found" | xargs -r chown -R {{ $chown }}
|
||||
{{- end }}
|
||||
{{- if .Values.volumePermissions.containerSecurityContext.enabled }}
|
||||
securityContext: {{- include "common.compatibility.renderSecurityContext" (dict "secContext" .Values.volumePermissions.containerSecurityContext "context" $) | nindent 12 }}
|
||||
|
||||
Reference in New Issue
Block a user