func (n *NodeGroup) Nodes() ([]cloudprovider.Instance, error) {
	var instances []cloudprovider.Instance

	for _, unit := range n.manager.units {
		instances = append(instances, cloudprovider.Instance{
			Id: unit.providerID,
			Status: &cloudprovider.InstanceStatus{
				State: unit.state,
			},
		})
	}

	return instances, nil
}
// Nodes returns a list of all nodes that belong to this node group.
// It is required that Instance objects returned by this method have Id field set.
// Other fields are optional.
// This list should include also instances that might have not become a kubernetes node yet.
Nodes returns a list of all nodes that belong to this node group.
It is required that Instance objects returned by this method have Id field set.
Other fields are optional.
This list should include also instances that might have not become a kubernetes node yet.
// Nodes returns a list of all nodes that belong to this node group . // It is required that Instance objects returned by this method have Id field set . // Other fields are optional . // This list should include also instances that might have not become a kubernetes node yet .
func (n *NodeGroup) Nodes() ([]cloudprovider.Instance, error) {
	var instances []cloudprovider.Instance
	for _, unit := range n.manager.units {
		instances = append(instances, cloudprovider.Instance{
			Id: unit.providerID,
			Status: &cloudprovider.InstanceStatus{
				State: unit.state,
			},
		})
	}
	return instances, nil
}
func ( n * NodeGroup ) Nodes ( ) ( [ ] cloudprovider . Instance , error ) { var instances [ ] cloudprovider . Instance for _ , unit := range n . manager . units { instances = append ( instances , cloudprovider . Instance { Id : unit . providerID , Status : & cloudprovider . InstanceStatus { State : unit . state , } , } ) } return instances , nil }
Nodes returns a list of all nodes that belong to this node group.
Nodes returns a list of all nodes that belong to this node group .