Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for CanAdoptFunc (0.21 sec)

  1. pkg/controller/controller_ref_manager.go

    	Controller metav1.Object
    	Selector   labels.Selector
    
    	canAdoptErr  error
    	canAdoptOnce sync.Once
    	CanAdoptFunc func(ctx context.Context) error
    }
    
    func (m *BaseControllerRefManager) CanAdopt(ctx context.Context) error {
    	m.canAdoptOnce.Do(func() {
    		if m.CanAdoptFunc != nil {
    			m.canAdoptErr = m.CanAdoptFunc(ctx)
    		}
    	})
    	return m.canAdoptErr
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 12 12:57:29 UTC 2023
    - 21.5K bytes
    - Viewed (0)
  2. pkg/controller/statefulset/stateful_set.go

    	return cm.ClaimPods(ctx, pods, filter)
    }
    
    // If any adoptions are attempted, we should first recheck for deletion with
    // an uncached quorum read sometime after listing Pods/ControllerRevisions (see #42639).
    func (ssc *StatefulSetController) canAdoptFunc(ctx context.Context, set *apps.StatefulSet) func(ctx2 context.Context) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  3. pkg/controller/deployment/deployment_controller.go

    	}
    	// If any adoptions are attempted, we should first recheck for deletion with
    	// an uncached quorum read sometime after listing ReplicaSets (see #42639).
    	canAdoptFunc := controller.RecheckDeletionTimestamp(func(ctx context.Context) (metav1.Object, error) {
    		fresh, err := dc.client.AppsV1().Deployments(d.Namespace).Get(ctx, d.Name, metav1.GetOptions{})
    		if err != nil {
    			return nil, err
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  4. pkg/controller/daemon/update.go

    	if err != nil {
    		return nil, err
    	}
    	// If any adoptions are attempted, we should first recheck for deletion with
    	// an uncached quorum read sometime after listing Pods (see #42639).
    	canAdoptFunc := controller.RecheckDeletionTimestamp(func(ctx context.Context) (metav1.Object, error) {
    		fresh, err := dsc.kubeClient.AppsV1().DaemonSets(ds.Namespace).Get(ctx, ds.Name, metav1.GetOptions{})
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 13 16:53:53 UTC 2024
    - 24.4K bytes
    - Viewed (0)
  5. pkg/controller/replicaset/replica_set.go

    	// If any adoptions are attempted, we should first recheck for deletion with
    	// an uncached quorum read sometime after listing Pods (see #42639).
    	canAdoptFunc := controller.RecheckDeletionTimestamp(func(ctx context.Context) (metav1.Object, error) {
    		fresh, err := rsc.kubeClient.AppsV1().ReplicaSets(rs.Namespace).Get(ctx, rs.Name, metav1.GetOptions{})
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  6. pkg/controller/job/job_controller.go

    	if err != nil {
    		return nil, err
    	}
    	// If any adoptions are attempted, we should first recheck for deletion
    	// with an uncached quorum read sometime after listing Pods (see #42639).
    	canAdoptFunc := controller.RecheckDeletionTimestamp(func(ctx context.Context) (metav1.Object, error) {
    		fresh, err := jm.kubeClient.BatchV1().Jobs(j.Namespace).Get(ctx, j.Name, metav1.GetOptions{})
    		if err != nil {
    			return nil, err
    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