Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

[Sonarqube] Introduce extra mounts for install-plugins init container #331

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions charts/sonarqube/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 | `{}` |
Expand Down
3 changes: 3 additions & 0 deletions charts/sonarqube/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions charts/sonarqube/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down