Skip to content
Permalink
Browse files

fix(charts): int cast in version comparison

  • Loading branch information...
Kingdon Barrett
Kingdon Barrett committed Jun 30, 2018
1 parent 4d7224d commit 40228573b3af23419775f2cd760cec7345e8415e
Showing with 2 additions and 2 deletions.
  1. +2 −2 charts/fluentd/templates/_helpers.tmpl
@@ -2,9 +2,9 @@
Set apiVersion based on Kubernetes version
*/}}
{{- define "rbacAPIVersion" -}}
{{- if lt .Capabilities.KubeVersion.Minor "6" -}}
{{- if (lt (int (.Capabilities.KubeVersion.Minor)) 6) -}}
rbac.authorization.k8s.io/v1alpha1
{{- 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)) -}}
rbac.authorization.k8s.io/v1beta1
{{- else -}}
rbac.authorization.k8s.io/v1

0 comments on commit 4022857

Please sign in to comment.
You can’t perform that action at this time.