func (r *instanceReconciler) instanceFromNode(node *core.Node) (*instances.InstanceInfo, error) {
	if node.Annotations[UsernameAnnotation] == "" {
		return nil, errors.New("node is missing valid username annotation")
	}
	addr, err := GetAddress(node.Status.Addresses)
	if err != nil {
		return nil, err
	}
	return instances.NewInstanceInfo(addr, node.Annotations[UsernameAnnotation], ""), nil
}
// instanceFromNode returns an instance object for the given node. Requires a username that can be used to SSH into the
// instance to be annotated on the node.
instanceFromNode returns an instance object for the given node. Requires a username that can be used to SSH into the
instance to be annotated on the node.
// instanceFromNode returns an instance object for the given node . Requires a username that can be used to SSH into the // instance to be annotated on the node .
func (r *instanceReconciler) instanceFromNode(node *core.Node) (*instances.InstanceInfo, error) {
	if node.Annotations[UsernameAnnotation] == "" {
		return nil, errors.New("node is missing valid username annotation")
	}
	addr, err := GetAddress(node.Status.Addresses)
	if err != nil {
		return nil, err
	}
	return instances.NewInstanceInfo(addr, node.Annotations[UsernameAnnotation], ""), nil
}
func ( r * instanceReconciler ) instanceFromNode ( node * core . Node ) ( * instances . InstanceInfo , error ) { if node . Annotations [ UsernameAnnotation ] == " " { return nil , errors . New ( " " ) } addr , err := GetAddress ( node . Status . Addresses ) if err != nil { return nil , err } return instances . NewInstanceInfo ( addr , node . Annotations [ UsernameAnnotation ] , " " ) , nil }
instanceFromNode returns an instance object for the given node.
instanceFromNode returns an instance object for the given node .