Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace the deprecated function calls of go-autorest #1582

Merged
merged 1 commit into from
Jan 15, 2019
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
12 changes: 6 additions & 6 deletions cluster-autoscaler/cloudprovider/azure/azure_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func (az *azVirtualMachineScaleSetsClient) CreateOrUpdate(ctx context.Context, r
return future.Response(), err
}

err = future.WaitForCompletion(ctx, az.client.Client)
err = future.WaitForCompletionRef(ctx, az.client.Client)
return future.Response(), err
}

Expand Down Expand Up @@ -152,7 +152,7 @@ func (az *azVirtualMachineScaleSetsClient) DeleteInstances(ctx context.Context,
return future.Response(), err
}

err = future.WaitForCompletion(ctx, az.client.Client)
err = future.WaitForCompletionRef(ctx, az.client.Client)
return future.Response(), err
}

Expand Down Expand Up @@ -242,7 +242,7 @@ func (az *azVirtualMachinesClient) Delete(ctx context.Context, resourceGroupName
return future.Response(), err
}

err = future.WaitForCompletion(ctx, az.client.Client)
err = future.WaitForCompletionRef(ctx, az.client.Client)
return future.Response(), err
}

Expand Down Expand Up @@ -296,7 +296,7 @@ func (az *azInterfacesClient) Delete(ctx context.Context, resourceGroupName stri
return future.Response(), err
}

err = future.WaitForCompletion(ctx, az.client.Client)
err = future.WaitForCompletionRef(ctx, az.client.Client)
return future.Response(), err
}

Expand Down Expand Up @@ -345,7 +345,7 @@ func (az *azDeploymentsClient) CreateOrUpdate(ctx context.Context, resourceGroup
return future.Response(), err
}

err = future.WaitForCompletion(ctx, az.client.Client)
err = future.WaitForCompletionRef(ctx, az.client.Client)
return future.Response(), err
}

Expand Down Expand Up @@ -376,7 +376,7 @@ func (az *azDisksClient) Delete(ctx context.Context, resourceGroupName string, d
return future.Response(), err
}

err = future.WaitForCompletion(ctx, az.client.Client)
err = future.WaitForCompletionRef(ctx, az.client.Client)
return future.Response(), err
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ func (agentPool *ContainerServiceAgentPool) setAKSNodeCount(count int) error {
klog.Errorf("Failed to update AKS cluster (%q): %v", agentPool.clusterName, err)
return err
}
return future.WaitForCompletion(updateCtx, aksClient.Client)
return future.WaitForCompletionRef(updateCtx, aksClient.Client)
}

// setACSNodeCount sets node count for ACS agent pool.
Expand Down Expand Up @@ -226,7 +226,7 @@ func (agentPool *ContainerServiceAgentPool) setACSNodeCount(count int) error {
klog.Errorf("Failed to update ACS cluster (%q): %v", agentPool.clusterName, err)
return err
}
return future.WaitForCompletion(updateCtx, acsClient.Client)
return future.WaitForCompletionRef(updateCtx, acsClient.Client)
}

//GetNodeCount returns the count of nodes from the managed agent pool profile
Expand Down