Skip to content

Commit

Permalink
Merge pull request #8866 from k8s-infra-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…8863-to-release-1.4

[release-1.4] 🌱 KCP: fix noisy error log triggered by missing patch helper
  • Loading branch information
k8s-ci-robot committed Jun 15, 2023
2 parents 080ed41 + cc749dd commit fc8581f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion controlplane/kubeadm/internal/control_plane.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,5 +261,10 @@ func (c *ControlPlane) PatchMachines(ctx context.Context) error {

// SetPatchHelpers updates the patch helpers.
func (c *ControlPlane) SetPatchHelpers(patchHelpers map[string]*patch.Helper) {
c.machinesPatchHelpers = patchHelpers
if c.machinesPatchHelpers == nil {
c.machinesPatchHelpers = map[string]*patch.Helper{}
}
for machineName, patchHelper := range patchHelpers {
c.machinesPatchHelpers[machineName] = patchHelper
}
}

0 comments on commit fc8581f

Please sign in to comment.