From dc560e59275ce09c1d9350fa4bce5d2c9c472875 Mon Sep 17 00:00:00 2001 From: Juan Ezquerro LLanes Date: Thu, 27 Jan 2022 00:38:50 +0100 Subject: [PATCH 1/4] Allow to configure pathType --- charts/sonarqube/templates/ingress.yaml | 2 +- charts/sonarqube/values.yaml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/charts/sonarqube/templates/ingress.yaml b/charts/sonarqube/templates/ingress.yaml index cd67d46..a3d6d63 100644 --- a/charts/sonarqube/templates/ingress.yaml +++ b/charts/sonarqube/templates/ingress.yaml @@ -45,7 +45,7 @@ spec: paths: - path: {{ .path}} {{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1" }} - pathType: Prefix + pathType: {{ .pathType }} {{- end }} backend: {{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1" }} diff --git a/charts/sonarqube/values.yaml b/charts/sonarqube/values.yaml index befab6e..333f5a9 100644 --- a/charts/sonarqube/values.yaml +++ b/charts/sonarqube/values.yaml @@ -60,6 +60,9 @@ ingress: - name: sonar.organization.com # Different clouds or configurations might need /* as the default path path: / + # Only for API version "networking.k8s.io/v1" + # https://kubernetes.io/docs/concepts/services-networking/ingress/#path-types + pathType: Prefix # For additional control over serviceName and servicePort # serviceName: someService # servicePort: somePort From 110364ab22cbcc52f57c2e23ab606beca07aa69d Mon Sep 17 00:00:00 2001 From: Juan Ezquerro LLanes Date: Thu, 27 Jan 2022 01:04:31 +0100 Subject: [PATCH 2/4] Update README --- charts/sonarqube/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/charts/sonarqube/README.md b/charts/sonarqube/README.md index 3334cbe..39438c9 100644 --- a/charts/sonarqube/README.md +++ b/charts/sonarqube/README.md @@ -102,6 +102,7 @@ The following table lists the configurable parameters of the Sonarqube chart and | `ingress.labels` | Ingress additional labels | `{}` | | `ingress.hosts[0].name` | Hostname to your SonarQube installation | `sonar.organization.com` | | `ingress.hosts[0].path` | Path within the URL structure | / | +| `ingress.hosts[0].pathType` | [URL match type](https://kubernetes.io/docs/concepts/services-networking/ingress/#path-types) | Prefix | | `ingress.hosts[0].serviceName` | Optional field to override the default serviceName of a path | None | | `ingress.hosts[0].servicePort` | Optional field to override the default servicePort of a path | None | | `ingress.tls` | Ingress secrets for TLS certificates | `[]` | From 0572cf8269ba7096d2706dafcc96fb2a364c9c5b Mon Sep 17 00:00:00 2001 From: Juan Ezquerro LLanes Date: Thu, 27 Jan 2022 01:06:09 +0100 Subject: [PATCH 3/4] Update Chart version --- charts/sonarqube/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/sonarqube/Chart.yaml b/charts/sonarqube/Chart.yaml index 765888e..83b2963 100644 --- a/charts/sonarqube/Chart.yaml +++ b/charts/sonarqube/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 name: sonarqube description: SonarQube is an open sourced code quality scanning tool -version: 9.9.2 +version: 9.9.3 appVersion: 8.9.6-community keywords: - coverage From 1257031cad2895d3d5f282bfc075d48a7773263d Mon Sep 17 00:00:00 2001 From: Rob Kernick Date: Mon, 7 Feb 2022 12:47:31 -0500 Subject: [PATCH 4/4] Update Chart.yaml --- charts/sonarqube/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/sonarqube/Chart.yaml b/charts/sonarqube/Chart.yaml index 83b2963..6044564 100644 --- a/charts/sonarqube/Chart.yaml +++ b/charts/sonarqube/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 name: sonarqube description: SonarQube is an open sourced code quality scanning tool -version: 9.9.3 +version: 9.10.0 appVersion: 8.9.6-community keywords: - coverage