[stable/sonarqube] Fix: Init-Container not created (#15026)

Fix issue that init-container was not created when
used without any additional plugins.

Signed-off-by: Jannis Oeltjen <oss@jcoeltjen.de>
This commit is contained in:
Jannis Oeltjen
2019-06-25 05:22:37 -07:00
committed by Kubernetes Prow Robot
parent 6ee98b392c
commit 1a17b714f5
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v1
name: sonarqube
description: Sonarqube is an open sourced code quality scanning tool
version: 2.1.0
version: 2.1.1
appVersion: 7.8
keywords:
- coverage
+1 -1
View File
@@ -20,7 +20,6 @@ spec:
spec:
securityContext:
{{ toYaml .Values.securityContext | indent 8 }}
{{- if .Values.plugins.install }}
initContainers:
- name: init-sysctl
image: busybox:1.31
@@ -31,6 +30,7 @@ spec:
imagePullPolicy: IfNotPresent
securityContext:
privileged: true
{{- if .Values.plugins.install }}
- name: install-plugins
image: {{ default "joosthofman/wget:1.0" .Values.plugins.initContainerImage }}
env: