-
Notifications
You must be signed in to change notification settings - Fork 232
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missed check on paths array.
@@ -1,9 +1,9 @@ | |||
{{- if .Values.ingress.enabled -}} | |||
{{- $serviceName := include "sonarqube.fullname" . -}} | |||
{{- $servicePort := .Values.service.externalPort -}} | |||
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" -}} | |||
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1" -}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the same check on line 47 is required.
@@ -10,9 +10,9 @@ | |||
{{- $servicePort = .Values.nexusProxy.port -}} | |||
{{- end }} | |||
|
|||
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" -}} | |||
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1" -}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see line 43.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the catch. Fixed
Hello, Shouldn't line 47 of the SonarQube ingress have the
Suggestion :
HTH |
@Mikaciu I do not believe you need the $ |
Error: UPGRADE FAILED: template: sonar/charts/sonarqube/templates/ingress.yaml:47:32: executing "sonar/charts/sonarqube/templates/ingress.yaml" at <.Capabilities.APIVersions.Has>: nil pointer evaluating interface {}.APIVersions it must be |
After this commit broken ingress for kubernetes 1.18 Please rollback |
kubectl version
helm install -f my-values.yaml sonatype-nexus oteemocharts/sonatype-nexus --version 5.3.3
helm install --atomic -f my-values.yaml sonatype-nexus oteemocharts/sonatype-nexus --version 5.3.2
|
kubectl version
helm install --atomic -f my-values.yaml sonatype-nexus oteemocharts/sonatype-nexus --version 5.3.3
helm install --atomic -f my-values.yaml sonatype-nexus oteemocharts/sonatype-nexus --version 5.3.2
|
Be careful this applies only to ingress v1... sadly the Has condition would also apply to ingress v1alpha, so be aware. |
fixes #305