From 3970f2556c5d8343baeabec82e74ce1a243eb5e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charles-Edouard=20Br=C3=A9t=C3=A9ch=C3=A9?= Date: Fri, 25 Nov 2022 23:51:26 +0100 Subject: [PATCH] fix: typo in autogen package (#5480) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Charles-Edouard Brétéché Signed-off-by: Charles-Edouard Brétéché --- pkg/autogen/autogen.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/autogen/autogen.go b/pkg/autogen/autogen.go index d125203a66..0758bbdccf 100644 --- a/pkg/autogen/autogen.go +++ b/pkg/autogen/autogen.go @@ -80,25 +80,25 @@ func CanAutoGen(spec *kyvernov1.Spec) (applyAutoGen bool, controllers string) { } for _, value := range match.Any { if !checkAutogenSupport(&needed, value.ResourceDescription) { - logger.V(3).Info("skip generating rule on pod controllers: Name / Selector in match any block is not be applicable.", "rule", rule.Name) + logger.V(3).Info("skip generating rule on pod controllers: Name / Selector in match any block is not applicable.", "rule", rule.Name) return false, "" } } for _, value := range match.All { if !checkAutogenSupport(&needed, value.ResourceDescription) { - logger.V(3).Info("skip generating rule on pod controllers: Name / Selector in match all block is not be applicable.", "rule", rule.Name) + logger.V(3).Info("skip generating rule on pod controllers: Name / Selector in match all block is not applicable.", "rule", rule.Name) return false, "" } } for _, value := range exclude.Any { if !checkAutogenSupport(&needed, value.ResourceDescription) { - logger.V(3).Info("skip generating rule on pod controllers: Name / Selector in exclude any block is not be applicable.", "rule", rule.Name) + logger.V(3).Info("skip generating rule on pod controllers: Name / Selector in exclude any block is not applicable.", "rule", rule.Name) return false, "" } } for _, value := range exclude.All { if !checkAutogenSupport(&needed, value.ResourceDescription) { - logger.V(3).Info("skip generating rule on pod controllers: Name / Selector in exclud all block is not be applicable.", "rule", rule.Name) + logger.V(3).Info("skip generating rule on pod controllers: Name / Selector in exclud all block is not applicable.", "rule", rule.Name) return false, "" } }