From 6d771f3654a2ab24618f11964ab5839c38452230 Mon Sep 17 00:00:00 2001 From: Venktesh Shivam Patel Date: Thu, 4 Apr 2024 16:27:12 +0100 Subject: [PATCH] fix ap-waf flag in error message (#5350) --- pkg/apis/configuration/validation/policy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/apis/configuration/validation/policy.go b/pkg/apis/configuration/validation/policy.go index bd87024180..a762146446 100644 --- a/pkg/apis/configuration/validation/policy.go +++ b/pkg/apis/configuration/validation/policy.go @@ -78,7 +78,7 @@ func validatePolicySpec(spec *v1.PolicySpec, fieldPath *field.Path, isPlus, enab } if !enableAppProtect { allErrs = append(allErrs, field.Forbidden(fieldPath.Child("waf"), - "App Protect must be enabled via cli argument -enable-appprotect to use WAF policy")) + "App Protect must be enabled via cli argument -enable-app-protect to use WAF policy")) } allErrs = append(allErrs, validateWAF(spec.WAF, fieldPath.Child("waf"))...)