Skip to content

Commit

Permalink
[stable/sonarqube] Fix: Init-Container not created (helm#15026)
Browse files Browse the repository at this point in the history
Fix issue that init-container was not created when
used without any additional plugins.

Signed-off-by: Jannis Oeltjen <[email protected]>
  • Loading branch information
jcoeltjen authored and davidkarlsen committed Jul 3, 2019
1 parent bb0433f commit d9bc0bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stable/sonarqube/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion stable/sonarqube/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ spec:
spec:
securityContext:
{{ toYaml .Values.securityContext | indent 8 }}
{{- if .Values.plugins.install }}
initContainers:
- name: init-sysctl
image: busybox:1.31
Expand All @@ -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:
Expand Down

0 comments on commit d9bc0bb

Please sign in to comment.