func (n *NodeGroup) DeleteNodes(nodes []*apiv1.Node) error {
	// ctx := context.Background()
	for _, node := range nodes {
		err := n.manager.removeUnit(node.Name)
		if err != nil {
			return err
		}
		// decrement the count by one  after a successful delete
		n.target--
	}

	return nil
}
// DeleteNodes deletes nodes from this node group. Error is returned either on
// failure or if the given node doesn't belong to this node group. This function
// should wait until node group size is updated. Implementation required.
DeleteNodes deletes nodes from this node group. Error is returned either on
failure or if the given node doesn't belong to this node group. This function
should wait until node group size is updated. Implementation required.
// DeleteNodes deletes nodes from this node group . Error is returned either on // failure or if the given node doesn ' t belong to this node group . This function // should wait until node group size is updated . Implementation required .
func (n *NodeGroup) DeleteNodes(nodes []*apiv1.Node) error {
	for _, node := range nodes {
		err := n.manager.removeUnit(node.Name)
		if err != nil {
			return err
		}
		n.target--
	}
	return nil
}
func ( n * NodeGroup ) DeleteNodes ( nodes [ ] * apiv1 . Node ) error { for _ , node := range nodes { err := n . manager . removeUnit ( node . Name ) if err != nil { return err } n . target -- } return nil }
DeleteNodes deletes nodes from this node group.
DeleteNodes deletes nodes from this node group .
// ctx := context.Background() // decrement the count by one  after a successful delete