Breaking change to ingress in 2.0.4 #66

Closed
opened 2020-11-25 13:10:30 +00:00 by onedr0p · 6 comments
Contributor

Breaking change due to the ingress spec changing in k8s 1.19. The chart will not work with ingress enabled if you are on 1.19.

Helm upgrade failed: error validating "": error validating data: [ValidationError(Ingress.spec.rules[0].http.paths[0].backend): unknown field "serviceName" in io.k8s.api.networking.v1.IngressBackend, ValidationError(Ingress.spec.rules[0].http.paths[0].backend): unknown field "servicePort" in io.k8s.api.networking.v1.IngressBackend] 

Discord conversation: https://discord.com/channels/322538954119184384/730458347928813581/780995708861284392

Breaking change due to the ingress spec changing in k8s 1.19. The chart will not work with ingress enabled if you are on 1.19. ``` Helm upgrade failed: error validating "": error validating data: [ValidationError(Ingress.spec.rules[0].http.paths[0].backend): unknown field "serviceName" in io.k8s.api.networking.v1.IngressBackend, ValidationError(Ingress.spec.rules[0].http.paths[0].backend): unknown field "servicePort" in io.k8s.api.networking.v1.IngressBackend] ``` Discord conversation: https://discord.com/channels/322538954119184384/730458347928813581/780995708861284392
Contributor

fwiw 2.0.3 doesn't have this problem - this was my mistake (sorry!). fix is in PR.

fwiw 2.0.3 doesn't have this problem - this was my mistake (sorry!). fix is in PR.

Hi,

I tried 2.0.5 agist Kubernetes 1.19.4 with Helm 3.4.1 and its broken (while 2.0.3 works):

jkr@joe-nb charts % helm install --dry-run gitea gitea/gitea -f values/gitea.yaml -f ../.local/gitea.yaml --version 2.0.5 Error: template: gitea/templates/gitea/ingress.yaml:38:57: executing "gitea/templates/gitea/ingress.yaml" at <.Capabilities.KubeVersion.GitVersion>: can't evaluate field Capabilities in type interface {} jkr@joe-nb charts % helm install --dry-run gitea gitea/gitea -f values/gitea.yaml -f ../.local/gitea.yaml --version 2.0.3 W1125 20:22:01.779485 37789 warnings.go:67] networking.k8s.io/v1beta1 Ingress is deprecated in v1.19+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress NAME: gitea LAST DEPLOYED: Wed Nov 25 20:22:01 2020 NAMESPACE: default STATUS: pending-install REVISION: 1 HOOKS: --- 

Looking at other charts, they using .Capabilities.APIVersions.Has "networking.k8s.io/v1 instead .Capabilities.KubeVersion.GitVersion which is working great.

Hi, I tried 2.0.5 agist Kubernetes 1.19.4 with Helm 3.4.1 and its broken (while 2.0.3 works): ``` jkr@joe-nb charts % helm install --dry-run gitea gitea/gitea -f values/gitea.yaml -f ../.local/gitea.yaml --version 2.0.5 Error: template: gitea/templates/gitea/ingress.yaml:38:57: executing "gitea/templates/gitea/ingress.yaml" at <.Capabilities.KubeVersion.GitVersion>: can't evaluate field Capabilities in type interface {} jkr@joe-nb charts % helm install --dry-run gitea gitea/gitea -f values/gitea.yaml -f ../.local/gitea.yaml --version 2.0.3 W1125 20:22:01.779485 37789 warnings.go:67] networking.k8s.io/v1beta1 Ingress is deprecated in v1.19+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress NAME: gitea LAST DEPLOYED: Wed Nov 25 20:22:01 2020 NAMESPACE: default STATUS: pending-install REVISION: 1 HOOKS: --- ``` Looking at other charts, they using `.Capabilities.APIVersions.Has "networking.k8s.io/v1` instead `.Capabilities.KubeVersion.GitVersion` which is working great.
Contributor
See https://gitea.com/gitea/helm-chart/pulls/67
Author
Contributor

@joelgallant you didn't bump the version with that fix... we need a 2.0.6

@joelgallant you didn't bump the version with that fix... we need a 2.0.6
Member

@jkroepke thanks for the suggestion I've added this into #70
Hopefully all issues in ingress are resolved with this PR. Finally had time to test it.

@jkroepke thanks for the suggestion I've added this into #70 Hopefully all issues in ingress are resolved with this PR. Finally had time to test it.
Member

Fixed with #70

Fixed with #70
Sign in to join this conversation.
4 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: gitea/helm-gitea#66
No description provided.