gruntwork-io / helm-kubernetes-services

Helm charts that can be used to package your applications into production ready deployments for Kubernetes. https://www.gruntwork.io
Apache License 2.0
190 stars 151 forks source link

Use 'ingressClassName' instead deprecated annotation "kubernetes.io/ingress.class" #189

Open nadiia-caspar opened 2 weeks ago

nadiia-caspar commented 2 weeks ago

Describe the solution you'd like I've noticed the warning during a chart deployment:

W0612 15:00:09.676081    1973 warnings.go:70] annotation "kubernetes.io/ingress.class" is deprecated, please use 'spec.ingressClassName' instead

The kubernetes.io/ingress.class annotation is deprecated since Kubernetes v1.18 , also a deprecation notes in AWS load balancer.

So we might add the spec.ingressClassName field to the Ingress template.

ryehowell commented 1 week ago

Hi @nadiia-caspar, thanks for opening this issue!

This should def be updated. We will get it into the backlog for one of the upcoming sprints. We do welcome PR's as well if you are interested in contributing an update for this 😄

nadiia-caspar commented 1 week ago

@ryehowell i could try to create a PR. But would need so clarification: do you support backward compatibilities? Should the previous way with annotations be supported?

ryehowell commented 1 week ago

Hi @nadiia-caspar, we always try to maintain as much backwards compatibility as possible, whenever and wherever possible.