Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions pkg/controller/deployment_inplace.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ func (dc *controller) rolloutInPlace(ctx context.Context, d *v1alpha1.MachineDep
// status-rollout steps.
if dc.autoscalerScaleDownAnnotationDuringRollout {
// Annotate all the nodes under this machine-deployment, as roll-out is on-going.
klog.V(3).Infof("RolloutInPlace ongoing for MachineDeployment %q, annotating all nodes under it with %s", d.Name, clusterAutoscalerScaleDownAnnotations)
err := dc.annotateNodesBackingMachineSets(ctx, allMachineSets, clusterAutoscalerScaleDownAnnotations)
if err != nil {
klog.Errorf("failed to add annotations %s on all nodes. Error: %v", clusterAutoscalerScaleDownAnnotations, err)
Expand Down
1 change: 1 addition & 0 deletions pkg/controller/deployment_recreate.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ func (dc *controller) rolloutRecreate(ctx context.Context, d *v1alpha1.MachineDe
// status-rollout steps.
if len(oldISs) > 0 && !dc.machineSetsScaledToZero(oldISs) {
// Annotate all the nodes under this machine-deployment, as roll-out is on-going.
klog.V(3).Infof("RolloutRecreate ongoing for MachineDeployment %q, annotating all nodes under it with %s", d.Name, clusterAutoscalerScaleDownAnnotations)
err := dc.annotateNodesBackingMachineSets(ctx, allISs, clusterAutoscalerScaleDownAnnotations)
if err != nil {
klog.Errorf("Failed to add %s on all nodes. Error: %s", clusterAutoscalerScaleDownAnnotations, err)
Expand Down
1 change: 1 addition & 0 deletions pkg/controller/deployment_rolling.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ func (dc *controller) rolloutRolling(ctx context.Context, d *v1alpha1.MachineDep
// status-rollout steps.
if len(oldISs) > 0 && !dc.machineSetsScaledToZero(oldISs) {
// Annotate all the nodes under this machine-deployment, as roll-out is on-going.
klog.V(3).Infof("RolloutRolling ongoing for MachineDeployment %q, annotating all nodes under it with %s", d.Name, clusterAutoscalerScaleDownAnnotations)
err := dc.annotateNodesBackingMachineSets(ctx, allISs, clusterAutoscalerScaleDownAnnotations)
if err != nil {
klog.Errorf("Failed to add %s on all nodes. Error: %s", clusterAutoscalerScaleDownAnnotations, err)
Expand Down