From 8a4ad899e9ff5d37ddb77dee6f930e9ecaa4abf0 Mon Sep 17 00:00:00 2001 From: Jannis Oeltjen Date: Mon, 24 Jun 2019 16:29:58 +0200 Subject: [PATCH] [stable/sonarqube] Upgrade to Sonarqube 7.8 (#15017) * [stable/sonarqube] upgrade to 7.8 Create init-container that sets vm.max_map_count. If this is not set sonarqube will not start because elasticsearch requires this sysctl setting to be at least 262144. Signed-off-by: Jannis Oeltjen * [stable/sonarqube] Adapt to new TLS format in NOTES Signed-off-by: Jannis Oeltjen --- stable/sonarqube/Chart.yaml | 4 ++-- stable/sonarqube/README.md | 2 +- stable/sonarqube/templates/NOTES.txt | 2 +- stable/sonarqube/templates/deployment.yaml | 9 +++++++++ stable/sonarqube/values.yaml | 2 +- 5 files changed, 14 insertions(+), 5 deletions(-) diff --git a/stable/sonarqube/Chart.yaml b/stable/sonarqube/Chart.yaml index c64a373622..29c41a9013 100644 --- a/stable/sonarqube/Chart.yaml +++ b/stable/sonarqube/Chart.yaml @@ -1,8 +1,8 @@ apiVersion: v1 name: sonarqube description: Sonarqube is an open sourced code quality scanning tool -version: 2.0.1 -appVersion: 7.7 +version: 2.1.0 +appVersion: 7.8 keywords: - coverage - security diff --git a/stable/sonarqube/README.md b/stable/sonarqube/README.md index ff23e0d716..901036ef6a 100644 --- a/stable/sonarqube/README.md +++ b/stable/sonarqube/README.md @@ -40,7 +40,7 @@ The following table lists the configurable parameters of the Sonarqube chart and | Parameter | Description | Default | | ------------------------------------------ | ---------------------------------------- | -------------------------------------------| | `image.repository` | image repository | `sonarqube` | -| `image.tag` | `sonarqube` image tag. | `7.7-community` | +| `image.tag` | `sonarqube` image tag. | `7.8-community` | | `image.pullPolicy` | Image pull policy | `IfNotPresent` | | `image.pullSecret` | imagePullSecret to use for private repository | | | `command` | command to run in the container | `nil` (need to be set prior to 6.7.6, and 7.4) | diff --git a/stable/sonarqube/templates/NOTES.txt b/stable/sonarqube/templates/NOTES.txt index 5b503239b7..fa36b07154 100644 --- a/stable/sonarqube/templates/NOTES.txt +++ b/stable/sonarqube/templates/NOTES.txt @@ -1,7 +1,7 @@ 1. Get the application URL by running these commands: {{- if .Values.ingress.enabled }} {{- range .Values.ingress.hosts }} - http://{{ . }} + http://{{ .name }} {{- end }} {{- else if contains "NodePort" .Values.service.type }} export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "sonarqube.fullname" . }}) diff --git a/stable/sonarqube/templates/deployment.yaml b/stable/sonarqube/templates/deployment.yaml index 65f886947e..d2a34469c7 100644 --- a/stable/sonarqube/templates/deployment.yaml +++ b/stable/sonarqube/templates/deployment.yaml @@ -22,6 +22,15 @@ spec: {{ toYaml .Values.securityContext | indent 8 }} {{- if .Values.plugins.install }} initContainers: + - name: init-sysctl + image: busybox:1.31 + command: + - sysctl + - -w + - vm.max_map_count=262144 + imagePullPolicy: IfNotPresent + securityContext: + privileged: true - name: install-plugins image: {{ default "joosthofman/wget:1.0" .Values.plugins.initContainerImage }} env: diff --git a/stable/sonarqube/values.yaml b/stable/sonarqube/values.yaml index a82b28dfb0..5e8a1d9608 100755 --- a/stable/sonarqube/values.yaml +++ b/stable/sonarqube/values.yaml @@ -4,7 +4,7 @@ replicaCount: 1 image: repository: sonarqube - tag: 7.7-community + tag: 7.8-community # If using a private repository, the name of the imagePullSecret to use # pullSecret: my-repo-secret