Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for DeletePropagationForeground (0.4 sec)

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

    		*options.PropagationPolicy != metav1.DeletePropagationForeground &&
    		*options.PropagationPolicy != metav1.DeletePropagationBackground &&
    		*options.PropagationPolicy != metav1.DeletePropagationOrphan {
    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/test/kube/util.go

    	return fetched, nil
    }
    
    // DeleteOptionsForeground creates new delete options that will block until the operation completes.
    func DeleteOptionsForeground() metav1.DeleteOptions {
    	propagationPolicy := metav1.DeletePropagationForeground
    	gracePeriod := int64(0)
    	return metav1.DeleteOptions{
    		PropagationPolicy:  &propagationPolicy,
    		GracePeriodSeconds: &gracePeriod,
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Dec 04 22:47:52 UTC 2023
    - 9.4K bytes
    - Viewed (0)
  3. pkg/kubemark/controller.go

    		return nil
    	}
    	if pod.ObjectMeta.Labels[nodeGroupLabel] != nodeGroup {
    		return fmt.Errorf("can't delete node %s from nodegroup %s. Node is not in nodegroup", node, nodeGroup)
    	}
    	policy := metav1.DeletePropagationForeground
    	var err error
    	for i := 0; i < numRetries; i++ {
    		err = kubemarkController.externalCluster.client.CoreV1().ReplicationControllers(namespaceKubemark).Delete(context.TODO(), pod.ObjectMeta.Labels["name"],
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 17 23:02:17 UTC 2020
    - 14.1K bytes
    - Viewed (0)
  4. pkg/registry/core/namespace/storage/storage.go

    	if options.OrphanDependents != nil {
    		return *options.OrphanDependents == false
    	}
    	if options.PropagationPolicy != nil {
    		return *options.PropagationPolicy == metav1.DeletePropagationForeground
    	}
    	return haveDeleteDependentsFinalizer
    }
    
    func (e *REST) ConvertToTable(ctx context.Context, object runtime.Object, tableOptions runtime.Object) (*metav1.Table, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 18 09:21:19 UTC 2022
    - 13.4K bytes
    - Viewed (0)
  5. pkg/controller/ttlafterfinished/ttlafterfinished_controller.go

    	expiredAt, err := tc.processTTL(logger, fresh)
    	if err != nil {
    		return err
    	} else if expiredAt == nil {
    		return nil
    	}
    	// Cascade deletes the Jobs if TTL truly expires.
    	policy := metav1.DeletePropagationForeground
    	options := metav1.DeleteOptions{
    		PropagationPolicy: &policy,
    		Preconditions:     &metav1.Preconditions{UID: &fresh.UID},
    	}
    	logger.V(4).Info("Cleaning up Job", "job", klog.KObj(fresh))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 07 23:59:28 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  6. pkg/registry/core/namespace/storage/storage_test.go

    	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
    		deleteOptions *metav1.DeleteOptions
    
    		existingFinalizers  []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)
  7. pkg/controller/garbagecollector/garbagecollector.go

    		// doesn't have dependents, the function will remove the
    		// FinalizerDeletingDependents from the item, resulting in the final
    		// deletion of the item.
    		policy := metav1.DeletePropagationForeground
    		return gc.deleteObject(item.identity, &policy)
    	default:
    		// item doesn't have any solid owner, so it needs to be garbage
    		// collected. Also, none of item's owners is waiting for the deletion of
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store.go

    	}
    	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. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go

    	// orphanDeleteStrategy indicates the default garbage collection policy is
    	// to orphan dependentes.
    	orphanDeleteStrategy := &testOrphanDeleteStrategy{defaultDeleteStrategy}
    
    	foregroundPolicy := metav1.DeletePropagationForeground
    	backgroundPolicy := metav1.DeletePropagationBackground
    	orphanPolicy := metav1.DeletePropagationOrphan
    
    	testcases := map[string]struct {
    		options  *metav1.DeleteOptions
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 101.8K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/types.go

    	// finalizer on the object, and sets its deletionTimestamp.  This policy is
    	// cascading, i.e., the dependents will be deleted with Foreground.
    	DeletePropagationForeground DeletionPropagation = "Foreground"
    )
    
    const (
    	// DryRunAll means to complete all processing stages, but don't
    	// persist changes to storage.
    	DryRunAll = "All"
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 05 10:52:25 UTC 2024
    - 79.2K bytes
    - Viewed (1)
Back to top