Skip to content

Commit

Permalink
(fix/multiple-machinepool-support) Having multiple KubeadmConfigs - o…
Browse files Browse the repository at this point in the history
…ne for each MachinePool

Signed-off-by: Archisman <[email protected]>
  • Loading branch information
Archisman committed Sep 5, 2024
1 parent 36529fc commit ace356f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
{{- if (.Values.global.capa).autoScaler }}
{{- range $index, $machinePool := $.Values.machinePools }}
---
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
kind: KubeadmConfig
metadata:
name: {{ .Values.global.clusterName }}
name: {{ printf "%s-%s" $.Values.global.clusterName $machinePool.name }}
spec:
joinConfiguration:
nodeRegistration:
kubeletExtraArgs:
cloud-provider: external
name: '{{"{{"}} ds.meta_data.local_hostname {{"}}"}}'
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:
configRef:
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
kind: KubeadmConfig
name: {{ $.Values.global.clusterName }}
name: {{ printf "%s-%s" $.Values.global.clusterName $machinePool.name }}
clusterName: {{ $.Values.global.clusterName }}
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
Expand Down

0 comments on commit ace356f

Please sign in to comment.