Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for DeletePropagationBackground (0.34 sec)

  1. pkg/registry/batch/job/storage/storage_test.go

    var _ warning.Recorder = &dummyRecorder{}
    
    func TestJobDeletion(t *testing.T) {
    	orphanDependents := true
    	orphanDeletionPropagation := metav1.DeletePropagationOrphan
    	backgroundDeletionPropagation := metav1.DeletePropagationBackground
    	job := validNewV1Job()
    	ctx := genericapirequest.NewDefaultContext()
    	key := "/jobs/" + metav1.NamespaceDefault + "/foo"
    	tests := []struct {
    		description   string
    		expectWarning bool
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 15 14:34:53 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  2. operator/pkg/helmreconciler/prune.go

    			scope.Errorf("failed to patch IstioOperator CR: %s, %v", u.GetName(), err)
    		}
    	}
    	err := h.client.Delete(context.TODO(), u, client.PropagationPolicy(metav1.DeletePropagationBackground))
    	scope.Debugf("Deleting %s (%s/%v)", oh, h.iop.Name, h.iop.Spec.Revision)
    	objGvk := u.GroupVersionKind()
    	if err != nil {
    		if !kerrors.IsNotFound(err) {
    			return err
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 08:32:06 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store.go

    		return *options.OrphanDependents
    	}
    	if options != nil && options.PropagationPolicy != nil {
    		switch *options.PropagationPolicy {
    		case metav1.DeletePropagationOrphan:
    			return true
    		case metav1.DeletePropagationBackground, metav1.DeletePropagationForeground:
    			return false
    		}
    	}
    
    	// If a finalizer is set in the object, it overrides the default
    	// validation should make sure the two cases won't be true at the same time.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 19 23:22:44 UTC 2024
    - 60.8K bytes
    - Viewed (0)
  4. pkg/controller/garbagecollector/garbagecollector.go

    			// if an existing foreground finalizer is already on the object, honor it.
    			policy = metav1.DeletePropagationForeground
    		default:
    			// otherwise, default to background.
    			policy = metav1.DeletePropagationBackground
    		}
    		logger.V(2).Info("Deleting item",
    			"item", item.identity,
    			"propagationPolicy", policy,
    		)
    		return gc.deleteObject(item.identity, &policy)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/types.go

    const (
    	// Orphans the dependents.
    	DeletePropagationOrphan DeletionPropagation = "Orphan"
    	// Deletes the object from the key-value store, the garbage collector will
    	// delete the dependents in the background.
    	DeletePropagationBackground DeletionPropagation = "Background"
    	// The object exists in the key-value store until the garbage collector
    	// deletes all the dependents whose ownerReference.blockOwnerDeletion=true
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 05 10:52:25 UTC 2024
    - 79.2K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go

    	// to orphan dependentes.
    	orphanDeleteStrategy := &testOrphanDeleteStrategy{defaultDeleteStrategy}
    
    	foregroundPolicy := metav1.DeletePropagationForeground
    	backgroundPolicy := metav1.DeletePropagationBackground
    	orphanPolicy := metav1.DeletePropagationOrphan
    
    	testcases := map[string]struct {
    		options  *metav1.DeleteOptions
    		strategy rest.RESTDeleteStrategy
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 101.8K bytes
    - Viewed (0)
Back to top