mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/sonarqube] Make sure the sonarqube data directories have the right owner to be written to (#17001)
* Make sure the sonarqube data directories have the right owner to be written to Signed-off-by: Gavin Mogan <git@gavinmogan.com> * mkdir and chmod all the directories Signed-off-by: Gavin Mogan <git@gavinmogan.com> * Bump helm chart version Signed-off-by: Gavin Mogan <git@gavinmogan.com>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
029e8783b7
commit
3f3edb98e4
@@ -1,7 +1,7 @@
|
||||
apiVersion: v1
|
||||
name: sonarqube
|
||||
description: Sonarqube is an open sourced code quality scanning tool
|
||||
version: 3.2.6
|
||||
version: 3.2.7
|
||||
appVersion: 7.9.1
|
||||
keywords:
|
||||
- coverage
|
||||
|
||||
@@ -35,6 +35,35 @@ spec:
|
||||
securityContext:
|
||||
{{ toYaml .Values.securityContext | indent 8 }}
|
||||
initContainers:
|
||||
- name: chmod-volume-mounts
|
||||
command:
|
||||
- "sh"
|
||||
- "-c"
|
||||
- 'mkdir -p $(printf "/opt/sonarqube/${1-%s\n}" temp logs data extensions/downloads extensions/plugins/tmp extensions/plugins) &&
|
||||
chown 999:999 -R $(printf "/opt/sonarqube/${1-%s\n}" temp logs data extensions/downloads extensions/plugins/tmp extensions/plugins)'
|
||||
image: busybox:1.31
|
||||
imagePullPolicy: IfNotPresent
|
||||
securityContext:
|
||||
privileged: true
|
||||
volumeMounts:
|
||||
- mountPath: /opt/sonarqube/temp
|
||||
name: sonarqube
|
||||
subPath: temp
|
||||
- mountPath: /opt/sonarqube/logs
|
||||
name: sonarqube
|
||||
subPath: logs
|
||||
- mountPath: /opt/sonarqube/data
|
||||
name: sonarqube
|
||||
subPath: data
|
||||
- mountPath: /opt/sonarqube/extensions/plugins/tmp
|
||||
name: sonarqube
|
||||
subPath: tmp
|
||||
- mountPath: /opt/sonarqube/extensions/downloads
|
||||
name: sonarqube
|
||||
subPath: downloads
|
||||
- mountPath: /opt/sonarqube/extensions/plugins
|
||||
name: sonarqube
|
||||
subPath: plugins
|
||||
{{- if .Values.elasticsearch.configureNode }}
|
||||
- name: init-sysctl
|
||||
image: {{ default "busybox:1.31" .Values.plugins.initSysctlContainerImage }}
|
||||
|
||||
Reference in New Issue
Block a user