From d4b5eb028b0cdc17971f6e73360c52e6dc8abdf2 Mon Sep 17 00:00:00 2001 From: Franco Date: Wed, 17 Apr 2024 09:03:59 -0300 Subject: [PATCH] feat: update flowcontrol API version to v1 Signed-off-by: Franco Hielpos --- charts/kyverno/templates/_helpers/_flowcontrol.tpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/charts/kyverno/templates/_helpers/_flowcontrol.tpl b/charts/kyverno/templates/_helpers/_flowcontrol.tpl index 39bae469078d..d6fb1077e361 100644 --- a/charts/kyverno/templates/_helpers/_flowcontrol.tpl +++ b/charts/kyverno/templates/_helpers/_flowcontrol.tpl @@ -1,7 +1,9 @@ {{/* vim: set filetype=mustache: */}} {{- define "kyverno.flowcontrol.apiVersion" -}} -{{- if .Capabilities.APIVersions.Has "flowcontrol.apiserver.k8s.io/v1beta3" -}} +{{- if .Capabilities.APIVersions.Has "flowcontrol.apiserver.k8s.io/v1" -}} + flowcontrol.apiserver.k8s.io/v1 +{{- else if .Capabilities.APIVersions.Has "flowcontrol.apiserver.k8s.io/v1beta3" -}} flowcontrol.apiserver.k8s.io/v1beta3 {{- else if .Capabilities.APIVersions.Has "flowcontrol.apiserver.k8s.io/v1beta2" -}} flowcontrol.apiserver.k8s.io/v1beta2