@@ -12,41 +12,41 @@ data:
12
12
kind: PodDisruptionBudget
13
13
metadata:
14
14
labels:
15
- app.kubernetes.io/instance: cluster-autoscaler-tmpl-clustername-tmpl
15
+ app.kubernetes.io/instance: 'ca-{{ `{{ index .Cluster.Annotations "caren.nutanix.com/ cluster-uuid" }}` }}'
16
16
app.kubernetes.io/managed-by: Helm
17
17
app.kubernetes.io/name: clusterapi-cluster-autoscaler
18
18
helm.sh/chart: cluster-autoscaler-9.37.0
19
- name: cluster-autoscaler-tmpl-clustername-tmpl
20
- namespace: tmpl-clusternamespace-tmpl
19
+ name: ' cluster-autoscaler-{{ `{{ index .Cluster.Annotations "caren.nutanix.com/cluster-uuid" }}` }}'
20
+ namespace: '{{ `{{ .Cluster.Namespace }}` }}'
21
21
spec:
22
22
maxUnavailable: 1
23
23
selector:
24
24
matchLabels:
25
- app.kubernetes.io/instance: cluster-autoscaler-tmpl-clustername-tmpl
25
+ app.kubernetes.io/instance: 'ca-{{ `{{ index .Cluster.Annotations "caren.nutanix.com/ cluster-uuid" }}` }}'
26
26
app.kubernetes.io/name: clusterapi-cluster-autoscaler
27
27
---
28
28
apiVersion: v1
29
29
automountServiceAccountToken: true
30
30
kind: ServiceAccount
31
31
metadata:
32
32
labels:
33
- app.kubernetes.io/instance: cluster-autoscaler-tmpl-clustername-tmpl
33
+ app.kubernetes.io/instance: 'ca-{{ `{{ index .Cluster.Annotations "caren.nutanix.com/ cluster-uuid" }}` }}'
34
34
app.kubernetes.io/managed-by: Helm
35
35
app.kubernetes.io/name: clusterapi-cluster-autoscaler
36
36
helm.sh/chart: cluster-autoscaler-9.37.0
37
- name: cluster-autoscaler-tmpl-clustername-tmpl
38
- namespace: tmpl-clusternamespace-tmpl
37
+ name: ' cluster-autoscaler-{{ `{{ index .Cluster.Annotations "caren.nutanix.com/cluster-uuid" }}` }}'
38
+ namespace: '{{ `{{ .Cluster.Namespace }}` }}'
39
39
---
40
40
apiVersion: rbac.authorization.k8s.io/v1
41
41
kind: Role
42
42
metadata:
43
43
labels:
44
- app.kubernetes.io/instance: cluster-autoscaler-tmpl-clustername-tmpl
44
+ app.kubernetes.io/instance: 'ca-{{ `{{ index .Cluster.Annotations "caren.nutanix.com/ cluster-uuid" }}` }}'
45
45
app.kubernetes.io/managed-by: Helm
46
46
app.kubernetes.io/name: clusterapi-cluster-autoscaler
47
47
helm.sh/chart: cluster-autoscaler-9.37.0
48
- name: cluster-autoscaler-tmpl-clustername-tmpl
49
- namespace: tmpl-clusternamespace-tmpl
48
+ name: ' cluster-autoscaler-{{ `{{ index .Cluster.Annotations "caren.nutanix.com/cluster-uuid" }}` }}'
49
+ namespace: '{{ `{{ .Cluster.Namespace }}` }}'
50
50
rules:
51
51
- apiGroups:
52
52
- ""
@@ -105,71 +105,71 @@ data:
105
105
kind: RoleBinding
106
106
metadata:
107
107
labels:
108
- app.kubernetes.io/instance: cluster-autoscaler-tmpl-clustername-tmpl
108
+ app.kubernetes.io/instance: 'ca-{{ `{{ index .Cluster.Annotations "caren.nutanix.com/ cluster-uuid" }}` }}'
109
109
app.kubernetes.io/managed-by: Helm
110
110
app.kubernetes.io/name: clusterapi-cluster-autoscaler
111
111
helm.sh/chart: cluster-autoscaler-9.37.0
112
- name: cluster-autoscaler-tmpl-clustername-tmpl
113
- namespace: tmpl-clusternamespace-tmpl
112
+ name: ' cluster-autoscaler-{{ `{{ index .Cluster.Annotations "caren.nutanix.com/cluster-uuid" }}` }}'
113
+ namespace: '{{ `{{ .Cluster.Namespace }}` }}'
114
114
roleRef:
115
115
apiGroup: rbac.authorization.k8s.io
116
116
kind: Role
117
- name: cluster-autoscaler-tmpl-clustername-tmpl
117
+ name: ' cluster-autoscaler-{{ `{{ index .Cluster.Annotations "caren.nutanix.com/cluster-uuid" }}` }}'
118
118
subjects:
119
119
- kind: ServiceAccount
120
- name: cluster-autoscaler-tmpl-clustername-tmpl
121
- namespace: tmpl-clusternamespace-tmpl
120
+ name: ' cluster-autoscaler-{{ `{{ index .Cluster.Annotations "caren.nutanix.com/cluster-uuid" }}` }}'
121
+ namespace: '{{ `{{ .Cluster.Namespace }}` }}'
122
122
---
123
123
apiVersion: v1
124
124
kind: Service
125
125
metadata:
126
126
labels:
127
- app.kubernetes.io/instance: cluster-autoscaler-tmpl-clustername-tmpl
127
+ app.kubernetes.io/instance: 'ca-{{ `{{ index .Cluster.Annotations "caren.nutanix.com/ cluster-uuid" }}` }}'
128
128
app.kubernetes.io/managed-by: Helm
129
129
app.kubernetes.io/name: clusterapi-cluster-autoscaler
130
130
helm.sh/chart: cluster-autoscaler-9.37.0
131
- name: cluster-autoscaler-tmpl-clustername-tmpl
132
- namespace: tmpl-clusternamespace-tmpl
131
+ name: ' cluster-autoscaler-{{ `{{ index .Cluster.Annotations "caren.nutanix.com/cluster-uuid" }}` }}'
132
+ namespace: '{{ `{{ .Cluster.Namespace }}` }}'
133
133
spec:
134
134
ports:
135
135
- name: http
136
136
port: 8085
137
137
protocol: TCP
138
138
targetPort: 8085
139
139
selector:
140
- app.kubernetes.io/instance: cluster-autoscaler-tmpl-clustername-tmpl
140
+ app.kubernetes.io/instance: 'ca-{{ `{{ index .Cluster.Annotations "caren.nutanix.com/ cluster-uuid" }}` }}'
141
141
app.kubernetes.io/name: clusterapi-cluster-autoscaler
142
142
type: ClusterIP
143
143
---
144
144
apiVersion: apps/v1
145
145
kind: Deployment
146
146
metadata:
147
147
labels:
148
- app.kubernetes.io/instance: cluster-autoscaler-tmpl-clustername-tmpl
148
+ app.kubernetes.io/instance: 'ca-{{ `{{ index .Cluster.Annotations "caren.nutanix.com/ cluster-uuid" }}` }}'
149
149
app.kubernetes.io/managed-by: Helm
150
150
app.kubernetes.io/name: clusterapi-cluster-autoscaler
151
151
helm.sh/chart: cluster-autoscaler-9.37.0
152
- name: cluster-autoscaler-tmpl-clustername-tmpl
153
- namespace: tmpl-clusternamespace-tmpl
152
+ name: ' cluster-autoscaler-{{ `{{ index .Cluster.Annotations "caren.nutanix.com/cluster-uuid" }}` }}'
153
+ namespace: '{{ `{{ .Cluster.Namespace }}` }}'
154
154
spec:
155
155
replicas: 1
156
156
revisionHistoryLimit: 10
157
157
selector:
158
158
matchLabels:
159
- app.kubernetes.io/instance: cluster-autoscaler-tmpl-clustername-tmpl
159
+ app.kubernetes.io/instance: 'ca-{{ `{{ index .Cluster.Annotations "caren.nutanix.com/ cluster-uuid" }}` }}'
160
160
app.kubernetes.io/name: clusterapi-cluster-autoscaler
161
161
template:
162
162
metadata:
163
163
labels:
164
- app.kubernetes.io/instance: cluster-autoscaler-tmpl-clustername-tmpl
164
+ app.kubernetes.io/instance: 'ca-{{ `{{ index .Cluster.Annotations "caren.nutanix.com/ cluster-uuid" }}` }}'
165
165
app.kubernetes.io/name: clusterapi-cluster-autoscaler
166
166
spec:
167
167
containers:
168
168
- command:
169
169
- ./cluster-autoscaler
170
170
- --cloud-provider=clusterapi
171
- - --namespace=tmpl-clusternamespace-tmpl
172
- - --node-group-auto-discovery=clusterapi:clusterName=tmpl-clustername-tmpl ,namespace=tmpl-clusternamespace-tmpl
171
+ - --namespace='{{ `{{ .Cluster.Namespace }}` }}'
172
+ - --node-group-auto-discovery=clusterapi:clusterName='{{ `{{ .Cluster.Name }}` }}' ,namespace='{{ `{{ .Cluster.Namespace }}` }}'
173
173
- --kubeconfig=/cluster/kubeconfig
174
174
- --clusterapi-cloud-config-authoritative
175
175
- --enforce-node-group-min-size=true
@@ -201,7 +201,7 @@ data:
201
201
readOnly: true
202
202
dnsPolicy: ClusterFirst
203
203
priorityClassName: system-cluster-critical
204
- serviceAccountName: cluster-autoscaler-tmpl-clustername-tmpl
204
+ serviceAccountName: ' cluster-autoscaler-{{ `{{ index .Cluster.Annotations "caren.nutanix.com/cluster-uuid" }}` }}'
205
205
tolerations:
206
206
- effect: NoSchedule
207
207
key: node-role.kubernetes.io/control-plane
@@ -211,7 +211,7 @@ data:
211
211
items:
212
212
- key: value
213
213
path: kubeconfig
214
- secretName: tmpl-clustername-tmpl- kubeconfig
214
+ secretName: '{{ `{{ .Cluster.Name }}` }}- kubeconfig'
215
215
kind : ConfigMap
216
216
metadata :
217
217
creationTimestamp : null
0 commit comments