Skip to content

Commit

Permalink
Fix annotation "kubernetes.io/ingress.class" is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Sheiko committed Jan 9, 2024
1 parent f24a7d1 commit c9ed6eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/app2kube/ingress.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

0 comments on commit c9ed6eb

Please sign in to comment.