Skip to content

Commit

Permalink
feat: update flowcontrol API version to v1
Browse files Browse the repository at this point in the history
  • Loading branch information
fhielpos committed Apr 17, 2024
1 parent f98d7d8 commit e4df761
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion charts/kyverno/templates/_helpers/_flowcontrol.tpl
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit e4df761

Please sign in to comment.