From c9ed6ebc3cb0c3854cceef914e5d7237a33eb256 Mon Sep 17 00:00:00 2001 From: Alexander Sheiko Date: Tue, 9 Jan 2024 13:05:37 +0200 Subject: [PATCH] Fix annotation "kubernetes.io/ingress.class" is deprecated --- pkg/app2kube/ingress.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/app2kube/ingress.go b/pkg/app2kube/ingress.go index b22c0a1..64b717e 100644 --- a/pkg/app2kube/ingress.go +++ b/pkg/app2kube/ingress.go @@ -36,7 +36,7 @@ func (app *App) GetIngress() (ingress []*v1.Ingress, err error) { } } - newIngress.Annotations["kubernetes.io/ingress.class"] = ing.Class + newIngress.Spec.IngressClassName = &ing.Class if app.Common.Ingress.Letsencrypt || ing.Letsencrypt { newIngress.Annotations["kubernetes.io/tls-acme"] = "true" }