func (r *instanceReconciler) deconfigureInstance(node *core.Node) error {
	instance, err := r.instanceFromNode(node)
	if err != nil {
		return errors.Wrap(err, "unable to create instance object from node")
	}

	nc, err := nodeconfig.NewNodeConfig(r.k8sclientset, r.clusterServiceCIDR, r.vxlanPort, instance, r.signer,
		nil)
	if err != nil {
		return errors.Wrap(err, "failed to create new nodeconfig")
	}
	return nc.Deconfigure()
}
// deconfigureInstance deconfigures the instance associated with the given node, removing the node from the cluster.
deconfigureInstance deconfigures the instance associated with the given node, removing the node from the cluster.
// deconfigureInstance deconfigures the instance associated with the given node removing the node from the cluster .
func (r *instanceReconciler) deconfigureInstance(node *core.Node) error {
	instance, err := r.instanceFromNode(node)
	if err != nil {
		return errors.Wrap(err, "unable to create instance object from node")
	}
	nc, err := nodeconfig.NewNodeConfig(r.k8sclientset, r.clusterServiceCIDR, r.vxlanPort, instance, r.signer,
		nil)
	if err != nil {
		return errors.Wrap(err, "failed to create new nodeconfig")
	}
	return nc.Deconfigure()
}
func ( r * instanceReconciler ) deconfigureInstance ( node * core . Node ) error { instance , err := r . instanceFromNode ( node ) if err != nil { return errors . Wrap ( err , " " ) } nc , err := nodeconfig . NewNodeConfig ( r . k8sclientset , r . clusterServiceCIDR , r . vxlanPort , instance , r . signer , nil ) if err != nil { return errors . Wrap ( err , " " ) } return nc . Deconfigure ( ) }
deconfigureInstance deconfigures the instance associated with the given node, removing the node from the cluster.
deconfigureInstance deconfigures the instance associated with the given node removing the node from the cluster .