diff --git a/charts/sonarqube/README.md b/charts/sonarqube/README.md index 3334cbe..8d29cfd 100644 --- a/charts/sonarqube/README.md +++ b/charts/sonarqube/README.md @@ -141,6 +141,7 @@ The following table lists the configurable parameters of the Sonarqube chart and | `plugins.resources` | Resources for plugins container | "" | | `plugins.netrcCreds` | Name of the secret containing .netrc file to use creds when downloading plugins | "" | | `plugins.noCheckCertificate` | Flag to not check server's certificate when downloading plugins | `false` | +| `plugins.mounts` | Specify extra mounts for install-plugins init container. Refer to ".spec.containers.volumeMounts" specification | [] | | `jvmOpts` | Values to add to SONARQUBE_WEB_JVM_OPTS | `""` | | `env` | Environment variables to attach to the pods | `nil` | | `annotations` | Sonarqube Pod annotations | `{}` | diff --git a/charts/sonarqube/templates/deployment.yaml b/charts/sonarqube/templates/deployment.yaml index e944873..c53187f 100644 --- a/charts/sonarqube/templates/deployment.yaml +++ b/charts/sonarqube/templates/deployment.yaml @@ -122,6 +122,9 @@ spec: subPath: lib/common - name: install-plugins mountPath: /tmp/scripts/ + {{- if .Values.plugins.mounts }} +{{ toYaml .Values.plugins.mounts | indent 12 }} + {{- end }} {{- if .Values.plugins.netrcCreds }} - name: plugins-netrc-file mountPath: /root diff --git a/charts/sonarqube/values.yaml b/charts/sonarqube/values.yaml index befab6e..e2079cb 100644 --- a/charts/sonarqube/values.yaml +++ b/charts/sonarqube/values.yaml @@ -193,6 +193,9 @@ plugins: # Set to true to not validate the server's certificate to download plugin noCheckCertificate: false + ## Specify extra mounts for install-plugins init container. Refer to ".spec.containers.volumeMounts" specification : https://kubernetes.io/fr/docs/concepts/storage/volumes/. + mounts: [] + ## Values to add to SONARQUBE_WEB_JVM_OPTS ## # jvmOpts: "-Djava.net.preferIPv4Stack=true"