We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c69d934 + cf54816 commit f665b8cCopy full SHA for f665b8c
charts/builder/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