Skip to content

Commit

Permalink
Code refactor and tests rephrase
Browse files Browse the repository at this point in the history
  • Loading branch information
sssash18 committed Nov 23, 2023
1 parent 6f46299 commit a6ea5d4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion cluster-autoscaler/cloudprovider/mcm/mcm_cloud_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ func (mcm *mcmCloudProvider) GetResourceLimiter() (*cloudprovider.ResourceLimite
return mcm.resourceLimiter, nil
}

// checkMCMAvailableReplicas checks if mcm is online
func (mcm *mcmCloudProvider) checkMCMAvailableReplicas() error {
namespace := mcm.mcmManager.namespace
deployment, err := mcm.mcmManager.deploymentLister.Deployments(namespace).Get("machine-controller-manager")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ func TestRefresh(t *testing.T) {
},
{

"should return an error if MCM deployment is not found",
"should return an error if MCM deployment is not found",
setup{
nodes: newNodes(1, "fakeID", []bool{false}),
machines: newMachines(1, "fakeID", nil, "machinedeployment-1", "machineset-1", []string{"1"}, []bool{false}),
Expand Down

0 comments on commit a6ea5d4

Please sign in to comment.