Add warning when the ingress controller uses a custom class
This commit is contained in:
parent
2399be867e
commit
3c0fb01ba2
1 changed files with 4 additions and 0 deletions
|
@ -260,6 +260,10 @@ func (n NGINXController) Info() *ingress.BackendInfo {
|
|||
|
||||
// OverrideFlags customize NGINX controller flags
|
||||
func (n NGINXController) OverrideFlags(flags *pflag.FlagSet) {
|
||||
ig, err := flags.GetString("ingress-class")
|
||||
if err == nil && ig != "" && ig != defIngressClass {
|
||||
glog.Warningf("only Ingress with class %v will be processed by this ingress controller", ig)
|
||||
}
|
||||
flags.Set("ingress-class", defIngressClass)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue