Skip to content

Commit 829e551

Browse files
committed
fix: autoscaler helm values
1 parent 533c4e8 commit 829e551

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

charts/cluster-api-runtime-extensions-nutanix/addons/cluster-autoscaler/values-template.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
fullnameOverride: "cluster-autoscaler-{{ `{{ index .Cluster.Annotations "caren.nutanix.com/cluster-uuid" }}` }}"
1+
---
2+
fullnameOverride: "cluster-autoscaler-{{ index .Cluster.Annotations "caren.nutanix.com/cluster-uuid" }}
23

34
cloudProvider: clusterapi
45

@@ -13,12 +14,11 @@ tolerations:
1314

1415
# Limit a single cluster-autoscaler Deployment to a single Cluster.
1516
autoDiscovery:
16-
clusterName: "{{ .Cluster.Name }}"
17+
clusterName: {{ .Cluster.Name }}
1718
# The controller failed with an RBAC error trying to watch CAPI objects at the cluster scope without this.
1819
labels:
19-
- namespace: "{{ .Cluster.Namespace }}"
20+
- namespace: {{ .Cluster.Namespace }}
2021

21-
clusterAPIConfigMapsNamespace: "{{ .Cluster.Namespace }}"
2222
# For workload clusters it is not possible to use the in-cluster client.
2323
# To simplify the configuration, use the admin kubeconfig generated by CAPI for all clusters.
2424
clusterAPIMode: kubeconfig-incluster

charts/cluster-api-runtime-extensions-nutanix/templates/cluster-autoscaler/manifests/cluster-autoscaler-configmap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ data:
169169
- ./cluster-autoscaler
170170
- --cloud-provider=clusterapi
171171
- --namespace='{{ `{{ .Cluster.Namespace }}` }}'
172-
- --node-group-auto-discovery=clusterapi:clusterName='{{ `{{ index .Cluster.Annotations "caren.nutanix.com/cluster-uuid" }}` }}',namespace='{{ `{{ .Cluster.Namespace }}` }}'
172+
- --node-group-auto-discovery=clusterapi:clusterName='{{ `{{ .Cluster.Name }}` }}',namespace='{{ `{{ .Cluster.Namespace }}` }}'
173173
- --kubeconfig=/cluster/kubeconfig
174174
- --clusterapi-cloud-config-authoritative
175175
- --enforce-node-group-min-size=true

0 commit comments

Comments
 (0)