[bitnami/sonarqube] Render initContainers when only plugins.install is set (#15774)

* Create initContainers if just plugins.install is set
Signed-off-by: Yannik Daellenbach <daellenbach@puzzle.ch>

* Bump chart version
Signed-off-by: Yannik Daellenbach <daellenbach@puzzle.ch>
This commit is contained in:
Yannik Dällenbach
2023-03-29 19:01:26 +02:00
committed by GitHub
parent 653dea8c45
commit 21bde0872a
2 changed files with 2 additions and 2 deletions

View File

@@ -28,4 +28,4 @@ name: sonarqube
sources:
- https://github.com/bitnami/containers/tree/main/bitnami/sonarqube
- https://github.com/SonarSource/sonarqube
version: 2.1.4
version: 2.1.5

View File

@@ -62,7 +62,7 @@ spec:
{{- if .Values.podSecurityContext.enabled }}
securityContext: {{- omit .Values.podSecurityContext "enabled" | toYaml | nindent 8 }}
{{- end }}
{{- if or .Values.initContainers .Values.sysctl.enabled (and .Values.volumePermissions.enabled .Values.persistence.enabled) }}
{{- if or .Values.initContainers .Values.plugins.install .Values.sysctl.enabled (and .Values.volumePermissions.enabled .Values.persistence.enabled) }}
initContainers:
{{- if .Values.plugins.install }}
- name: {{ printf "%s-install-plugins-initcontainer" (include "common.names.fullname" .) }}