Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for DeletePropagationBackground (0.49 sec)

  1. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/validation/validation.go

    		*options.PropagationPolicy != metav1.DeletePropagationBackground &&
    		*options.PropagationPolicy != metav1.DeletePropagationOrphan {
    		allErrs = append(allErrs, field.NotSupported(field.NewPath("propagationPolicy"), options.PropagationPolicy, []string{string(metav1.DeletePropagationForeground), string(metav1.DeletePropagationBackground), string(metav1.DeletePropagationOrphan), "nil"}))
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 08 01:52:02 UTC 2022
    - 13.5K bytes
    - Viewed (0)
  2. pkg/controller/cronjob/injection.go

    	return r.KubeClient.BatchV1().Jobs(namespace).Create(context.TODO(), job, metav1.CreateOptions{})
    }
    
    func (r realJobControl) DeleteJob(namespace string, name string) error {
    	background := metav1.DeletePropagationBackground
    	return r.KubeClient.BatchV1().Jobs(namespace).Delete(context.TODO(), name, metav1.DeleteOptions{PropagationPolicy: &background})
    }
    
    type fakeJobControl struct {
    	sync.Mutex
    	Job           *batchv1.Job
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 22 09:37:31 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/delete_test.go

    func TestDeleteResourceAuditLogRequestObject(t *testing.T) {
    
    	ctx := audit.WithAuditContext(context.TODO())
    	ac := audit.AuditContextFrom(ctx)
    	ac.Event.Level = auditapis.LevelRequestResponse
    
    	policy := metav1.DeletePropagationBackground
    	deleteOption := &metav1.DeleteOptions{
    		GracePeriodSeconds: pointer.Int64Ptr(30),
    		PropagationPolicy:  &policy,
    	}
    
    	fakeCorev1GroupVersion := schema.GroupVersion{
    		Group:   "",
    		Version: "v1",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 16:16:51 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  4. 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)
  5. pkg/controller/namespace/deletion/namespaced_resources_deleter.go

    	// resource deletions generically.  it will ensure all resources in the namespace are purged prior to releasing
    	// namespace itself.
    	background := metav1.DeletePropagationBackground
    	opts := metav1.DeleteOptions{PropagationPolicy: &background}
    	err := d.metadataClient.Resource(gvr).Namespace(namespace).DeleteCollection(ctx, opts, metav1.ListOptions{})
    	if err == nil {
    		return true, nil
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 20 07:34:23 UTC 2023
    - 25.2K bytes
    - Viewed (0)
  6. 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)
  7. pkg/registry/core/namespace/storage/storage_test.go

    	}
    }
    
    func TestDeleteWithGCFinalizers(t *testing.T) {
    	storage, server := newStorage(t)
    	defer server.Terminate(t)
    	defer storage.store.DestroyFunc()
    
    	propagationBackground := metav1.DeletePropagationBackground
    	propagationForeground := metav1.DeletePropagationForeground
    	propagationOrphan := metav1.DeletePropagationOrphan
    	trueVar := true
    
    	var tests = []struct {
    		name          string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 17 05:13:34 UTC 2022
    - 19.8K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top