File tree Expand file tree Collapse file tree
test/dvp-static-cluster/charts/cluster-config/templates Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 {{- $totalNodes = add $totalNodes .count -}}
55{{- end -}}
66
7+ {{/*
8+ CAPS (Cluster API Static Provider) manages static nodes, but during bootstrap it may fail
9+ to take control of the first master node, which can break the bootstrap process.
10+
11+ To avoid this, the first master (index 0) — the one that was bootstrapped initially —
12+ is intentionally excluded from CAPS management. Only masters with index >= 1 are registered
13+ as StaticInstance resources and counted in the NodeGroup.
14+ */}}
715{{- $masterCount := $.Values.instances.masterNodes.count | int -}}
816{{- if gt $masterCount 1 -}}
917 {{- $staticCount := sub $masterCount 1 -}}
4553 address : {{ index $.Values.discovered.vmIPs $vmName }}
4654 credentialsRef :
4755 kind : SSHCredentials
48- name : mvp-static
56+ name : dvp-stataic
4957{{- end }}
5058{{- end }}
Original file line number Diff line number Diff line change 3838 address : {{ index $.Values.discovered.vmIPs $vmName }}
3939 credentialsRef :
4040 kind : SSHCredentials
41- name : mvp-static
41+ name : dvp-stataic
4242 {{- end }}
4343
4444{{- end }}
Original file line number Diff line number Diff line change 22apiVersion : deckhouse.io/v1alpha2
33kind : SSHCredentials
44metadata :
5- name : mvp-static
5+ name : dvp-stataic
66spec :
77 user : cloud
88 privateSSHKey : {{ .Values.discovered.privateSSHKeyBase64 }}
You can’t perform that action at this time.
0 commit comments