From 87965a9535a29e2790b35a7e8d87d353c80adbab Mon Sep 17 00:00:00 2001 From: Torben Mueller Date: Fri, 19 Nov 2021 08:54:35 +0100 Subject: [PATCH 1/2] Bump 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 a1f06fe..3db8470 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.0 +version: 9.9.1 appVersion: 8.5.1-community keywords: - coverage From 61d1e87ff68060f643734ad5fcd7f74d104692dc Mon Sep 17 00:00:00 2001 From: Torben Mueller Date: Fri, 19 Nov 2021 08:55:15 +0100 Subject: [PATCH 2/2] Added resource type to capabilities query --- charts/sonarqube/templates/ingress.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/sonarqube/templates/ingress.yaml b/charts/sonarqube/templates/ingress.yaml index cd67d46..8470ea7 100644 --- a/charts/sonarqube/templates/ingress.yaml +++ b/charts/sonarqube/templates/ingress.yaml @@ -1,9 +1,9 @@ {{- if .Values.ingress.enabled -}} {{- $serviceName := include "sonarqube.fullname" . -}} {{- $servicePort := .Values.service.externalPort -}} -{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1" -}} +{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }} apiVersion: networking.k8s.io/v1 -{{- else if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1" -}} +{{- else if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1/Ingress" }} apiVersion: networking.k8s.io/v1beta1 {{- else -}} apiVersion: extensions/v1beta1