Skip to content

Commit

Permalink
Merge pull request #2328 from feiskyer/cluster-autoscaler-release-1.12
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 a3aaf64 + 5ebe819 commit 5ac5736
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,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 == "" {
glog.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
}
glog.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 5ac5736

Please sign in to comment.