From d9bc0bb34e054fb76bf4e88bc7adff6e28f5cc28 Mon Sep 17 00:00:00 2001 From: Jannis Oeltjen Date: Tue, 25 Jun 2019 14:22:37 +0200 Subject: [PATCH] [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 --- stable/sonarqube/Chart.yaml | 2 +- stable/sonarqube/templates/deployment.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stable/sonarqube/Chart.yaml b/stable/sonarqube/Chart.yaml index 29c41a901371..4013dc658cef 100644 --- a/stable/sonarqube/Chart.yaml +++ b/stable/sonarqube/Chart.yaml @@ -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 diff --git a/stable/sonarqube/templates/deployment.yaml b/stable/sonarqube/templates/deployment.yaml index d2a34469c7e3..1b73f1998ca8 100644 --- a/stable/sonarqube/templates/deployment.yaml +++ b/stable/sonarqube/templates/deployment.yaml @@ -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: