diff --git a/pkg/controller/deployment_inplace.go b/pkg/controller/deployment_inplace.go index 1c06091c3..6f088a5ba 100644 --- a/pkg/controller/deployment_inplace.go +++ b/pkg/controller/deployment_inplace.go @@ -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) diff --git a/pkg/controller/deployment_recreate.go b/pkg/controller/deployment_recreate.go index e43a49423..597c9ed89 100644 --- a/pkg/controller/deployment_recreate.go +++ b/pkg/controller/deployment_recreate.go @@ -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) diff --git a/pkg/controller/deployment_rolling.go b/pkg/controller/deployment_rolling.go index 285faa146..02ac533c4 100644 --- a/pkg/controller/deployment_rolling.go +++ b/pkg/controller/deployment_rolling.go @@ -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)