func (j *jujuCloudProvider) NodeGroupForNode(node *apiv1.Node) (cloudprovider.NodeGroup, error) {
	for _, nodeGroup := range j.nodeGroups {
		nodeGroupNodes, err := nodeGroup.Nodes()
		if err != nil {
			return nil, err
		}
		for _, nodeGroupNode := range nodeGroupNodes {
			if nodeGroupNode.Id == node.Spec.ProviderID {
				return nodeGroup, nil
			}
		}
	}
	return nil, nil
}
// NodeGroupForNode returns the node group for the given node, nil if the node
// should not be processed by cluster autoscaler, or non-nil error if such
// occurred. Must be implemented.
NodeGroupForNode returns the node group for the given node, nil if the node
should not be processed by cluster autoscaler, or non-nil error if such
occurred. Must be implemented.
// NodeGroupForNode returns the node group for the given node nil if the node // should not be processed by cluster autoscaler or non - nil error if such // occurred . Must be implemented .
func (j *jujuCloudProvider) NodeGroupForNode(node *apiv1.Node) (cloudprovider.NodeGroup, error) {
	for _, nodeGroup := range j.nodeGroups {
		nodeGroupNodes, err := nodeGroup.Nodes()
		if err != nil {
			return nil, err
		}
		for _, nodeGroupNode := range nodeGroupNodes {
			if nodeGroupNode.Id == node.Spec.ProviderID {
				return nodeGroup, nil
			}
		}
	}
	return nil, nil
}
func ( j * jujuCloudProvider ) NodeGroupForNode ( node * apiv1 . Node ) ( cloudprovider . NodeGroup , error ) { for _ , nodeGroup := range j . nodeGroups { nodeGroupNodes , err := nodeGroup . Nodes ( ) if err != nil { return nil , err } for _ , nodeGroupNode := range nodeGroupNodes { if nodeGroupNode . Id == node . Spec . ProviderID { return nodeGroup , nil } } } return nil , nil }
NodeGroupForNode returns the node group for the given node, nil if the node
should not be processed by cluster autoscaler, or non-nil error if such
occurred.
NodeGroupForNode returns the node group for the given node nil if the node should not be processed by cluster autoscaler or non - nil error if such occurred .