forked from gardener/gardener
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_versions.tpl
56 lines (48 loc) · 1.25 KB
/
_versions.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{{/*
This file should only be symlinked! This text should appear to be
modified only for a file in charts/_versions.tpl
*/}}
{{- define "kubeletcomponentconfigversion" -}}
kubelet.config.k8s.io/v1beta1
{{- end -}}
{{- define "schedulercomponentconfigversion" -}}
componentconfig/v1alpha1
{{- end -}}
{{- define "proxycomponentconfigversion" -}}
{{- if semverCompare ">= 1.9" .Capabilities.KubeVersion.GitVersion -}}
kubeproxy.config.k8s.io/v1alpha1
{{- else -}}
componentconfig/v1alpha1
{{- end -}}
{{- end -}}
{{- define "rbacversion" -}}
rbac.authorization.k8s.io/v1
{{- end -}}
{{- define "deploymentversion" -}}
{{- if semverCompare ">= 1.9" .Capabilities.KubeVersion.GitVersion -}}
apps/v1
{{- else -}}
apps/v1beta2
{{- end -}}
{{- end -}}
{{- define "daemonsetversion" -}}
{{- if semverCompare ">= 1.9" .Capabilities.KubeVersion.GitVersion -}}
apps/v1
{{- else -}}
apps/v1beta2
{{- end -}}
{{- end -}}
{{- define "statefulsetversion" -}}
{{- if semverCompare ">= 1.9" .Capabilities.KubeVersion.GitVersion -}}
apps/v1
{{- else -}}
apps/v1beta2
{{- end -}}
{{- end -}}
{{- define "apiserviceversion" -}}
{{- if semverCompare ">= 1.10" .Capabilities.KubeVersion.GitVersion -}}
apiregistration.k8s.io/v1
{{- else -}}
apiregistration.k8s.io/v1beta1
{{- end -}}
{{- end -}}