Skip to content

Commit

Permalink
Merge pull request #2329 from feiskyer/cluster-autoscaler-release-1.13
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 688df40 + d460554 commit 137fa66
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,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 137fa66

Please sign in to comment.