We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c0d3d35 + ddbd8ac commit 2bf9a23Copy full SHA for 2bf9a23
charts/controller/templates/_helpers.tmpl
@@ -2,9 +2,11 @@
2
Set apiVersion based on Kubernetes version
3
*/}}
4
{{- define "rbacAPIVersion" -}}
5
-{{- if ge .Capabilities.KubeVersion.Minor "6" -}}
+{{- if lt .Capabilities.KubeVersion.Minor "6" -}}
6
+rbac.authorization.k8s.io/v1alpha1
7
+{{- else if (and (ge .Capabilities.KubeVersion.Minor "6") (le .Capabilities.KubeVersion.Minor "7")) -}}
8
rbac.authorization.k8s.io/v1beta1
9
{{- else -}}
-rbac.authorization.k8s.io/v1alpha1
10
+rbac.authorization.k8s.io/v1
11
{{- end -}}
12
0 commit comments