mirror of
https://github.com/bitnami/charts.git
synced 2026-03-16 06:47:30 +08:00
[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:
@@ -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
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user