Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for RecheckDeletionTimestamp (0.31 sec)

  1. pkg/controller/controller_ref_manager.go

    			return nil
    		}
    	}
    	return err
    }
    
    // RecheckDeletionTimestamp returns a CanAdopt() function to recheck deletion.
    //
    // The CanAdopt() function calls getObject() to fetch the latest value,
    // and denies adoption attempts if that object has a non-nil DeletionTimestamp.
    func RecheckDeletionTimestamp(getObject func(context.Context) (metav1.Object, error)) func(context.Context) error {
    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

    func (ssc *StatefulSetController) canAdoptFunc(ctx context.Context, set *apps.StatefulSet) func(ctx2 context.Context) error {
    	return controller.RecheckDeletionTimestamp(func(ctx context.Context) (metav1.Object, error) {
    		fresh, err := ssc.kubeClient.AppsV1().StatefulSets(set.Namespace).Get(ctx, set.Name, metav1.GetOptions{})
    		if err != nil {
    			return nil, err
    		}
    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

    		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 {
    			return nil, err
    		}
    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 {
    			return nil, err
    		}
    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/daemon/daemon_controller.go

    		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).
    	dsNotDeleted := 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 {
    			return nil, err
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 51.3K bytes
    - Viewed (0)
  7. pkg/controller/job/job_controller.go

    		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