From e659bb29635094d3284ca3b7e08f9c14008e4c33 Mon Sep 17 00:00:00 2001 From: Manuel Alejandro de Brito Fontes Date: Mon, 2 Nov 2020 19:30:51 -0300 Subject: [PATCH] Improve ingress class error message --- cmd/nginx/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/nginx/main.go b/cmd/nginx/main.go index f8ff31ba3..c5e301203 100644 --- a/cmd/nginx/main.go +++ b/cmd/nginx/main.go @@ -131,6 +131,7 @@ func main() { } if k8s.IngressClass != nil && k8s.IngressClass.Spec.Controller != k8s.IngressNGINXController { + klog.Errorf(`Invalid IngressClass (Spec.Controller) value "%v". Should be "%v"`, k8s.IngressClass.Spec.Controller, k8s.IngressNGINXController) klog.Fatalf("IngressClass with name %v is not valid for ingress-nginx (invalid Spec.Controller)", class.IngressClass) } }