From 84aa2e3fbb1243ac442d9eb0b67ae40943b36660 Mon Sep 17 00:00:00 2001 From: Soumya Singh <61948033+tend2infinity@users.noreply.github.com> Date: Mon, 11 Apr 2022 13:04:14 +0530 Subject: [PATCH] Add returnType for regexMatch in kyverno jp output (#3575) Signed-off-by: tend2infinity Co-authored-by: tend2infinity --- pkg/engine/jmespath/functions.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/engine/jmespath/functions.go b/pkg/engine/jmespath/functions.go index 8a90a42cca..43d7ad3216 100644 --- a/pkg/engine/jmespath/functions.go +++ b/pkg/engine/jmespath/functions.go @@ -212,6 +212,7 @@ func GetFunctions() []*FunctionEntry { }, Handler: jpRegexMatch, }, + ReturnType: []JpType{JpBool}, }, { Entry: &gojmespath.FunctionEntry{Name: patternMatch,