[stable/sonarqube] Add deployment strategy support and use LTS image (#16651)

* Add deployment strategy support and use lts image

Signed-off-by: Steve Hipwell <steve.hipwell@gmail.com>

* Update sonarqube readme

Signed-off-by: Steve Hipwell <steve.hipwell@gmail.com>
This commit is contained in:
Steve Hipwell
2019-08-28 07:55:11 -07:00
committed by Kubernetes Prow Robot
parent e2a713f734
commit 2e2e6d275c
4 changed files with 15 additions and 5 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
apiVersion: v1
name: sonarqube
description: Sonarqube is an open sourced code quality scanning tool
version: 2.1.4
appVersion: 7.8
version: 2.2.0
appVersion: 7.9
keywords:
- coverage
- security
+3 -1
View File
@@ -39,8 +39,10 @@ The following table lists the configurable parameters of the Sonarqube chart and
| Parameter | Description | Default |
| ------------------------------------------ | ---------------------------------------- | -------------------------------------------|
| `replicaCount` | Number of replicas deployed | `1` |
| `deploymentStrategy` | Deployment strategy | `{}` |
| `image.repository` | image repository | `sonarqube` |
| `image.tag` | `sonarqube` image tag. | `7.8-community` |
| `image.tag` | `sonarqube` image tag. | `7.9-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) |
+5 -1
View File
@@ -9,6 +9,10 @@ metadata:
heritage: {{ .Release.Service }}
spec:
replicas: {{ .Values.replicaCount }}
{{- if .Values.deploymentStrategy }}
strategy:
{{ toYaml .Values.deploymentStrategy | indent 4 }}
{{- end }}
template:
metadata:
labels:
@@ -193,7 +197,7 @@ spec:
{{- end }}
{{- if .Values.sonarSecretKey }}
- name: secret
secret:
secret:
secretName: {{ .Values.sonarSecretKey }}
items:
- key: sonar-secret.txt
+5 -1
View File
@@ -2,9 +2,13 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
replicaCount: 1
# This will use the default deployment strategy unless it is overriden
deploymentStrategy: {}
image:
repository: sonarqube
tag: 7.8-community
tag: 7.9-community
# If using a private repository, the name of the imagePullSecret to use
# pullSecret: my-repo-secret