We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52fd7eb commit 381718aCopy full SHA for 381718a
controlplane/kubeadm/internal/control_plane.go
@@ -261,5 +261,10 @@ func (c *ControlPlane) PatchMachines(ctx context.Context) error {
261
262
// SetPatchHelpers updates the patch helpers.
263
func (c *ControlPlane) SetPatchHelpers(patchHelpers map[string]*patch.Helper) {
264
- c.machinesPatchHelpers = patchHelpers
+ if c.machinesPatchHelpers == nil {
265
+ c.machinesPatchHelpers = map[string]*patch.Helper{}
266
+ }
267
+ for machineName, patchHelper := range patchHelpers {
268
+ c.machinesPatchHelpers[machineName] = patchHelper
269
270
}
0 commit comments