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 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