Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for SwapNodeControllerTaint (0.21 sec)

  1. pkg/controller/util/node/controller_utils.go

    	recorder.Eventf(ref, v1.EventTypeNormal, newStatus, "Node %s status is now: %s", node.Name, newStatus)
    }
    
    // SwapNodeControllerTaint returns true in case of success and false
    // otherwise.
    func SwapNodeControllerTaint(ctx context.Context, kubeClient clientset.Interface, taintsToAdd, taintsToRemove []*v1.Taint, node *v1.Node) bool {
    	logger := klog.FromContext(ctx)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 05 23:39:52 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  2. pkg/controller/nodelifecycle/node_lifecycle_controller.go

    	// If nothing to add or delete, return true directly.
    	if len(taintsToAdd) == 0 && len(taintsToDel) == 0 {
    		return nil
    	}
    	if !controllerutil.SwapNodeControllerTaint(ctx, nc.kubeClient, taintsToAdd, taintsToDel, node) {
    		return fmt.Errorf("failed to swap taints of node %+v", node)
    	}
    	return nil
    }
    
    func (nc *Controller) doNoExecuteTaintingPass(ctx context.Context) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 51.6K bytes
    - Viewed (0)
Back to top