[bitnami/memcached] Add flag '-r' to xargs in volumePermissions init-container (#9135)

Signed-off-by: Miguel Ruiz <miruiz@vmware.com>
This commit is contained in:
Miguel Ruiz
2022-02-21 17:02:55 +01:00
committed by GitHub
parent e9284763d4
commit 97cba0bec3
2 changed files with 2 additions and 2 deletions

View File

@@ -22,4 +22,4 @@ name: memcached
sources:
- https://github.com/bitnami/bitnami-docker-memcached
- http://memcached.org/
version: 6.0.3
version: 6.0.4

View File

@@ -80,7 +80,7 @@ spec:
- |
mkdir -p /cache-state
touch /cache-state/memory_file
find /cache-state -mindepth 1 -maxdepth 1 -not -name ".snapshot" -not -name "lost+found" | xargs chown -R {{ .Values.containerSecurityContext.runAsUser }}:{{ .Values.podSecurityContext.fsGroup }}
find /cache-state -mindepth 1 -maxdepth 1 -not -name ".snapshot" -not -name "lost+found" | xargs -r chown -R {{ .Values.containerSecurityContext.runAsUser }}:{{ .Values.podSecurityContext.fsGroup }}
securityContext:
runAsUser: 0
{{- if .Values.volumePermissions.resources }}