From 95ccd3acefec976bdf5a41e9b8cd226c5af320da Mon Sep 17 00:00:00 2001 From: Torsten Walter Date: Mon, 11 Nov 2019 13:09:41 +0100 Subject: [PATCH] [stable/sonarqube] configure persistence defaults (#18716) This makes it easier to use persistence. As all one needs to do is to set `persistence.enabled` to `true` It's still possible to override it with other settings if the user wants to. Reasoning for the values: - `accessMode` needs to be defined anyhow as the template uses it when rendering the PVC - `storageClass` of empty uses the default storage class of the cluster - `size` 10Gi - just a default values Signed-off-by: Torsten Walter --- stable/sonarqube/Chart.yaml | 2 +- stable/sonarqube/README.md | 4 ++-- stable/sonarqube/values.yaml | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/stable/sonarqube/Chart.yaml b/stable/sonarqube/Chart.yaml index b2e3646fee..854eb2ab49 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: 3.2.4 +version: 3.2.5 appVersion: 7.9.1 keywords: - coverage diff --git a/stable/sonarqube/README.md b/stable/sonarqube/README.md index b275e24cd5..ce09749db6 100644 --- a/stable/sonarqube/README.md +++ b/stable/sonarqube/README.md @@ -66,9 +66,9 @@ The following table lists the configurable parameters of the Sonarqube chart and | `persistence.enabled` | Flag for enabling persistent storage | false | | `persistence.annotations` | Kubernetes pvc annotations | `{}` | | `persistence.existingClaim` | Do not create a new PVC but use this one | None | -| `persistence.storageClass` | Storage class to be used | "-" | +| `persistence.storageClass` | Storage class to be used | "" | | `persistence.accessMode` | Volumes access mode to be set | `ReadWriteOnce` | -| `persistence.size` | Size of the volume | None | +| `persistence.size` | Size of the volume | 10Gi | | `sonarProperties` | Custom `sonar.properties` file | None | | `sonarSecretProperties` | Additional `sonar.properties` file to load from a secret | None | | `customCerts.enabled` | Use `customCerts.secretName` | false | diff --git a/stable/sonarqube/values.yaml b/stable/sonarqube/values.yaml index 527cf3a220..292cd5e837 100644 --- a/stable/sonarqube/values.yaml +++ b/stable/sonarqube/values.yaml @@ -126,9 +126,9 @@ persistence: ## set, choosing the default provisioner. (gp2 on AWS, standard on ## GKE, AWS & OpenStack) ## - # storageClass: "-" - # accessMode: ReadWriteOnce - # size: 10Gi + storageClass: + accessMode: ReadWriteOnce + size: 10Gi # List of plugins to install. # For example: