diff --git a/internal/ingress/annotations/parser/main.go b/internal/ingress/annotations/parser/main.go index e10c373f1..d517cbc57 100644 --- a/internal/ingress/annotations/parser/main.go +++ b/internal/ingress/annotations/parser/main.go @@ -31,7 +31,7 @@ import ( // DefaultAnnotationsPrefix defines the common prefix used in the nginx ingress controller const ( DefaultAnnotationsPrefix = "nginx.ingress.kubernetes.io" - DefaultDisableAnnotationValidation = true + DefaultDisableAnnotationValidation = false ) var ( diff --git a/pkg/flags/flags.go b/pkg/flags/flags.go index d5f95597c..b629b9332 100644 --- a/pkg/flags/flags.go +++ b/pkg/flags/flags.go @@ -152,7 +152,7 @@ Requires the update-status parameter.`) annotationsPrefix = flags.String("annotations-prefix", parser.DefaultAnnotationsPrefix, `Prefix of the Ingress annotations specific to the NGINX controller.`) - disableAnnotationValidation = flags.Bool("disable-annotation-validation", parser.DefaultDisableAnnotationValidation, + disableAnnotationValidation = flags.Bool("disable-annotation-validation", true, `Prefix of the Ingress annotations specific to the NGINX controller.`) enableSSLChainCompletion = flags.Bool("enable-ssl-chain-completion", false,