Skip to content

Commit

Permalink
updated logs
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshu-kun committed Jan 9, 2023
1 parent d0287ab commit 29da250
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cluster-autoscaler/cloudprovider/mcm/mcm_cloud_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion cluster-autoscaler/cloudprovider/mcm/mcm_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,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 {
Expand Down

0 comments on commit 29da250

Please sign in to comment.