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.
42
42
{ {- end -} }
43
43
44
44
{ {/*
45
- Return the appropriate apiVersion for rbac .
45
+ Return the appropriate apiVersion for ingress .
46
46
*/} }
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 " -} }
50
50
{ {- else -} }
51
- { {- print " rbac.authorization.k8s.io/v1beta1" -} }
52
- { {- end -} }
51
+ { {- print " extensions/v1beta1" -} }
53
52
{ {- end -} }
53
+ { {- end -} }
Original file line number Diff line number Diff line change 1
1
{{- 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" . }}
7
3
kind : Ingress
8
4
metadata :
9
5
name : {{ template "azure-resourcemanager-exporter.fullname" . }}
Original file line number Diff line number Diff line change 1
1
restartPolicy : Always
2
2
3
- extraEnv :
3
+ extraEnv : {}
4
4
# AZURE_LOCATION: ""
5
5
6
6
strategy :
You can’t perform that action at this time.
0 commit comments