Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ClaimPods (0.1 sec)

  1. pkg/controller/daemon/daemon_controller.go

    		}
    		return fresh, nil
    	})
    
    	// Use ControllerRefManager to adopt/orphan as needed.
    	cm := controller.NewPodControllerRefManager(dsc.podControl, ds, selector, controllerKind, dsNotDeleted)
    	return cm.ClaimPods(ctx, pods)
    }
    
    // getNodesToDaemonPods returns a map from nodes to daemon pods (corresponding to ds) created for the nodes.
    // This also reconciles ControllerRef by adopting/orphaning.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 51.3K bytes
    - Viewed (0)
  2. pkg/controller/job/job_controller.go

    	})
    	cm := controller.NewPodControllerRefManager(jm.podControl, j, selector, controllerKind, canAdoptFunc, batch.JobTrackingFinalizer)
    	// When adopting Pods, this operation adds an ownerRef and finalizers.
    	pods, err = cm.ClaimPods(ctx, pods)
    	if err != nil {
    		return pods, err
    	}
    	// Set finalizer on adopted pods for the remaining calculations.
    	for i, p := range pods {
    		adopted := true
    		for _, r := range p.OwnerReferences {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 23:56:37 UTC 2024
    - 77.6K bytes
    - Viewed (0)
Back to top