File tree Expand file tree Collapse file tree 3 files changed +8
-12
lines changed
helm/azure-resourcemanager-exporter Expand file tree Collapse file tree 3 files changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -42,12 +42,12 @@ Create the name of the service account to use.
4242{ {- end -} }
4343
4444{ {/*
45- Return the appropriate apiVersion for rbac .
45+ Return the appropriate apiVersion for ingress .
4646*/} }
47- { {- define " rbac .apiVersion" -} }
48- { {- if .Capabilities.APIVersions.Has " rbac.authorization.k8s.io/v1 " } }
49- { {- print " rbac.authorization. k8s.io/v1 " -} }
47+ { {- define " ingress .apiVersion" -} }
48+ { {- if semverCompare " >=1.14.0-0 " .Capabilities.KubeVersion.GitVersion } }
49+ { {- print " networking. k8s.io/v1beta1 " -} }
5050{ {- else -} }
51- { {- print " rbac.authorization.k8s.io/v1beta1" -} }
52- { {- end -} }
51+ { {- print " extensions/v1beta1" -} }
5352{ {- end -} }
53+ { {- end -} }
Original file line number Diff line number Diff line change 11{{- if .Values.ingress.enabled -}}
2- {{- if semverCompare ">=1.14.0-0" .Capabilities.KubeVersion.GitVersion }}
3- apiVersion : networking.k8s.io/v1beta1
4- {{- else }}
5- apiVersion : extensions/v1beta1
6- {{- end }}
2+ apiVersion : {{ template "ingress.apiVersion" . }}
73kind : Ingress
84metadata :
95 name : {{ template "azure-resourcemanager-exporter.fullname" . }}
Original file line number Diff line number Diff line change 11restartPolicy : Always
22
3- extraEnv :
3+ extraEnv : {}
44 # AZURE_LOCATION: ""
55
66strategy :
You can’t perform that action at this time.
0 commit comments