We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 040e085 commit cbc7e40Copy full SHA for cbc7e40
1 file changed
charts/monitor/templates/_helpers.tmpl
@@ -2,9 +2,9 @@
2
Set apiVersion based on Kubernetes version
3
*/}}
4
{{- define "rbacAPIVersion" -}}
5
-{{- if lt .Capabilities.KubeVersion.Minor "6" -}}
+{{- if (lt (int (.Capabilities.KubeVersion.Minor)) 6) -}}
6
rbac.authorization.k8s.io/v1alpha1
7
-{{- else if (and (ge .Capabilities.KubeVersion.Minor "6") (le .Capabilities.KubeVersion.Minor "7")) -}}
+{{- else if (and (ge (int (.Capabilities.KubeVersion.Minor)) 6) (le (int (.Capabilities.KubeVersion.Minor)) 7)) -}}
8
rbac.authorization.k8s.io/v1beta1
9
{{- else -}}
10
rbac.authorization.k8s.io/v1
0 commit comments