Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions pkg/controller/deployment_rolling.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,19 @@ func (dc *controller) rolloutRolling(ctx context.Context, d *v1alpha1.MachineDep
return err
}
}
// This check is needed because sometimes we can backtrack on a deployment, and this taint can stick
// See https://github.com/gardener/machine-controller-manager/issues/989 for more details
if err = dc.removeTaintNodesBackingMachineSet(
ctx,
newIS,
&v1.Taint{
Key: PreferNoScheduleKey,
Value: "True",
Effect: "PreferNoSchedule",
},
); err != nil {
klog.Warningf("Failed to remove taint %s from all nodes. Error: %s", PreferNoScheduleKey, err)
}
if err := dc.cleanupMachineDeployment(ctx, oldISs, d); err != nil {
return err
}
Expand Down
Loading