Skip to content

Commit d5893d4

Browse files
authored
fix(controller): typo in catch-all CheckIngress error message (#8905)
1 parent adeb84a commit d5893d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/ingress/controller/controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ func (n *NGINXController) CheckIngress(ing *networking.Ingress) error {
265265
}
266266

267267
if n.cfg.DisableCatchAll && ing.Spec.DefaultBackend != nil {
268-
return fmt.Errorf("This deployment is trying to create a catch-all ingress while DisableCatchAll flag is set to true. Remove '.spec.backend' or set DisableCatchAll flag to false.")
268+
return fmt.Errorf("This deployment is trying to create a catch-all ingress while DisableCatchAll flag is set to true. Remove '.spec.defaultBackend' or set DisableCatchAll flag to false.")
269269
}
270270
startRender := time.Now().UnixNano() / 1000000
271271
cfg := n.store.GetBackendConfiguration()

0 commit comments

Comments
 (0)