mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[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:
committed by
Kubernetes Prow Robot
parent
6ee98b392c
commit
1a17b714f5
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user