Print warning only instead of error if no permission on ingressclass (#7578)

* skip ingressclass check if ingressclass is not enabled

* reformat with gofmt
This commit is contained in:
emerson 2021-10-11 03:48:37 +08:00 committed by GitHub
parent 710d0db9a5
commit 6499393772
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 27 additions and 10 deletions

View file

@ -42,7 +42,9 @@ type IngressClassConfiguration struct {
// WatchWithoutClass defines if Controller should watch to Ingress Objects that does
// not contain an IngressClass configuration
WatchWithoutClass bool
// IgnoreIngressClass defines if Controller should ignore the IngressClass Object if no permissions are
// granted on IngressClass
IgnoreIngressClass bool
//IngressClassByName defines if the Controller should watch for Ingress Classes by
// .metadata.name together with .spec.Controller
IngressClassByName bool