From 4b960b999798ce55fb24bd22f61c59a2c7c242d8 Mon Sep 17 00:00:00 2001 From: Himanshu Sharma Date: Mon, 9 Jan 2023 14:27:14 +0530 Subject: [PATCH] updated logs --- cluster-autoscaler/cloudprovider/mcm/mcm_cloud_provider.go | 2 +- cluster-autoscaler/cloudprovider/mcm/mcm_manager.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cluster-autoscaler/cloudprovider/mcm/mcm_cloud_provider.go b/cluster-autoscaler/cloudprovider/mcm/mcm_cloud_provider.go index a720421832cd..73197cbf78c8 100644 --- a/cluster-autoscaler/cloudprovider/mcm/mcm_cloud_provider.go +++ b/cluster-autoscaler/cloudprovider/mcm/mcm_cloud_provider.go @@ -320,7 +320,7 @@ func (machinedeployment *MachineDeployment) DecreaseTargetSize(delta int) error return err } if int(size+int64(delta)) < machinedeployment.minSize { - klog.Warningf("Cannot go below min size= %d for machineDeployment %s, requested target size= %d , applied target size= %d", machinedeployment.minSize, machinedeployment.Name, size+int64(delta), machinedeployment.minSize) + klog.Warningf("Cannot go below min size= %d for machineDeployment %s, requested target size= %d . Setting target size to min size", machinedeployment.minSize, machinedeployment.Name, size+int64(delta)) return machinedeployment.mcmManager.SetMachineDeploymentSize(machinedeployment, int64(machinedeployment.minSize)) } return machinedeployment.mcmManager.SetMachineDeploymentSize(machinedeployment, size+int64(delta)) diff --git a/cluster-autoscaler/cloudprovider/mcm/mcm_manager.go b/cluster-autoscaler/cloudprovider/mcm/mcm_manager.go index d2d8ba3c6d19..8f14da527384 100644 --- a/cluster-autoscaler/cloudprovider/mcm/mcm_manager.go +++ b/cluster-autoscaler/cloudprovider/mcm/mcm_manager.go @@ -563,7 +563,7 @@ func (m *McmManager) DeleteMachines(machines []*Ref) error { break } - klog.Infof("Machine %s of md %s marked with priority 1 successfully", machine.Name, md.Name) + klog.Infof("Machine %s of machineDeployment %s marked with priority 1 successfully", machine.Name, md.Name) } for {