Skip to content

Commit

Permalink
Merge pull request #2331 from feiskyer/cluster-autoscaler-release-1.14
Browse files Browse the repository at this point in the history
Cluster Autoscaler: Cherry pick of #2237
  • Loading branch information
k8s-ci-robot authored Sep 12, 2019
2 parents e31cfb8 + 338d3c5 commit 650261f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ func (azure *AzureCloudProvider) NodeGroups() []cloudprovider.NodeGroup {

// NodeGroupForNode returns the node group for the given node.
func (azure *AzureCloudProvider) NodeGroupForNode(node *apiv1.Node) (cloudprovider.NodeGroup, error) {
if node.Spec.ProviderID == "" {
klog.V(6).Infof("Skipping to search for node group for the node '%s'. Because doesn't have spec.ProviderID.\n", node.ObjectMeta.Name)
return nil, nil
}
klog.V(6).Infof("Searching for node group for the node: %s\n", node.Spec.ProviderID)
ref := &azureRef{
Name: node.Spec.ProviderID,
Expand Down

0 comments on commit 650261f

Please sign in to comment.