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

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

View File

@@ -28,4 +28,4 @@ name: sonarqube
sources:
- https://github.com/bitnami/bitnami-docker-sonarqube
- https://github.com/SonarSource/sonarqube
version: 0.2.6
version: 0.2.7

View File

@@ -92,7 +92,7 @@ spec:
- |
mkdir -p /bitnami/sonarqube
chmod 700 /bitnami/sonarqube
find /bitnami/sonarqube -mindepth 1 -maxdepth 1 -not -name ".snapshot" -not -name "lost+found" | xargs chown -R {{ .Values.containerSecurityContext.runAsUser }}:{{ .Values.podSecurityContext.fsGroup }}
find /bitnami/sonarqube -mindepth 1 -maxdepth 1 -not -name ".snapshot" -not -name "lost+found" | xargs -r chown -R {{ .Values.containerSecurityContext.runAsUser }}:{{ .Values.podSecurityContext.fsGroup }}
{{- if .Values.volumePermissions.containerSecurityContext.enabled }}
securityContext: {{- omit .Values.volumePermissions.containerSecurityContext "enabled" | toYaml | nindent 12 }}
{{- end }}