func (r *instanceReconciler) configureInstance(instance *instances.InstanceInfo, annotations map[string]string) error {
	nc, err := nodeconfig.NewNodeConfig(r.k8sclientset, r.clusterServiceCIDR, r.vxlanPort, instance, r.signer,
		annotations)
	if err != nil {
		return errors.Wrap(err, "failed to create new nodeconfig")
	}
	if err := nc.Configure(); err != nil {
		return errors.Wrap(err, "failed to configure Windows instance")
	}
	return nil
}
// configureInstance adds the specified instance to the cluster. if hostname is not empty, the instance's hostname will be
// changed to the passed in value. If annotations is not nil, the node will have the specified annotations applied to
// it.
configureInstance adds the specified instance to the cluster. if hostname is not empty, the instance's hostname will be
changed to the passed in value. If annotations is not nil, the node will have the specified annotations applied to
it.
// configureInstance adds the specified instance to the cluster . if hostname is not empty the instance ' s hostname will be // changed to the passed in value . If annotations is not nil the node will have the specified annotations applied to // it .
func (r *instanceReconciler) configureInstance(instance *instances.InstanceInfo, annotations map[string]string) error {
	nc, err := nodeconfig.NewNodeConfig(r.k8sclientset, r.clusterServiceCIDR, r.vxlanPort, instance, r.signer,
		annotations)
	if err != nil {
		return errors.Wrap(err, "failed to create new nodeconfig")
	}
	if err := nc.Configure(); err != nil {
		return errors.Wrap(err, "failed to configure Windows instance")
	}
	return nil
}
func ( r * instanceReconciler ) configureInstance ( instance * instances . InstanceInfo , annotations map [ string ] string ) error { nc , err := nodeconfig . NewNodeConfig ( r . k8sclientset , r . clusterServiceCIDR , r . vxlanPort , instance , r . signer , annotations ) if err != nil { return errors . Wrap ( err , " " ) } if err := nc . Configure ( ) ; err != nil { return errors . Wrap ( err , " " ) } return nil }
configureInstance adds the specified instance to the cluster.
configureInstance adds the specified instance to the cluster .