Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for DeletePod (0.18 sec)

  1. plugin/pkg/auth/authorizer/node/graph_populator.go

    	startTime := time.Now()
    	g.graph.DeletePod(pod.Name, pod.Namespace)
    	klog.V(5).Infof("deletePod %s/%s for node %s completed in %v", pod.Namespace, pod.Name, pod.Spec.NodeName, time.Since(startTime))
    }
    
    func (g *graphPopulator) addPV(obj interface{}) {
    	g.updatePV(nil, obj)
    }
    
    func (g *graphPopulator) updatePV(oldObj, obj interface{}) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  2. pkg/volume/util/recyclerclient/recycler_client.go

    		return err
    	}
    
    	// Start the pod
    	_, err = recyclerClient.CreatePod(pod)
    	if err != nil {
    		if errors.IsAlreadyExists(err) {
    			deleteErr := recyclerClient.DeletePod(pod.Name, pod.Namespace)
    			if deleteErr != nil {
    				return fmt.Errorf("failed to delete old recycler pod %s/%s: %s", pod.Namespace, pod.Name, deleteErr)
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 8.5K bytes
    - Viewed (0)
  3. pkg/controller/volume/attachdetach/reconciler/reconciler_test.go

    	verifyNewDetacherCallCount(t, true /* expectZeroNewDetacherCallCount */, fakePlugin)
    	waitForDetachCallCount(t, 0 /* expectedDetachCallCount */, fakePlugin)
    
    	// Act
    	dsw.DeletePod(types.UniquePodName(podName), generatedVolumeName, nodeName)
    	volumeExists = dsw.VolumeExists(generatedVolumeName, nodeName)
    	if volumeExists {
    		t.Fatalf(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 07:00:14 UTC 2024
    - 72.8K bytes
    - Viewed (0)
  4. pkg/controller/statefulset/stateful_set_test.go

    	om.setsIndexer.Add(set1)
    	om.setsIndexer.Add(set2)
    
    	ssc.deletePod(logger, pod1)
    	key, done := ssc.queue.Get()
    	if key == "" || done {
    		t.Error("failed to enqueue StatefulSet")
    	} else if expectedKey, _ := controller.KeyFunc(set1); expectedKey != key {
    		t.Errorf("expected StatefulSet key %s found %s", expectedKey, key)
    	}
    
    	ssc.deletePod(logger, pod2)
    	key, done = ssc.queue.Get()
    	if key == "" || done {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  5. pkg/scheduler/util/utils.go

    		return err
    	}
    
    	return retry.OnError(retry.DefaultBackoff, Retriable, patchFn)
    }
    
    // DeletePod deletes the given <pod> from API server
    func DeletePod(ctx context.Context, cs kubernetes.Interface, pod *v1.Pod) error {
    	return cs.CoreV1().Pods(pod.Namespace).Delete(ctx, pod.Name, metav1.DeleteOptions{})
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Sep 21 01:40:44 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  6. pilot/pkg/xds/workload_test.go

    		deletePod(s, "pod")
    		expectRemoved(ads.ExpectResponse(), "Kubernetes//Pod/default/pod")
    
    		// Create pod we are not subscribed to; due to same-node optimization this will push
    		createPod(s, "pod-same-node", "sa", "127.0.0.3", "node")
    		expect(ads.ExpectResponse(), "Kubernetes//Pod/default/pod-same-node")
    
    		deletePod(s, "pod-same-node")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 18 19:09:43 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  7. pkg/controller/volume/attachdetach/populator/desired_state_of_world_populator.go

    		// from the informer, delete it from dsw
    		logger.V(1).Info("Removing pod from dsw because it does not exist in pod informer", "podName", dswPodKey, "podUID", dswPodUID)
    		dswp.desiredStateOfWorld.DeletePod(dswPodUID, dswPodToAdd.VolumeName, dswPodToAdd.NodeName)
    	}
    
    	// check if the existing volumes changes its attachability
    	for _, volumeToAttach := range dswp.desiredStateOfWorld.GetVolumesToAttach() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 00:37:30 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  8. pkg/controller/statefulset/stateful_set.go

    		for _, set := range sets {
    			ssc.enqueueStatefulSet(set)
    		}
    	}
    }
    
    // deletePod enqueues the statefulset for the pod accounting for deletion tombstones.
    func (ssc *StatefulSetController) deletePod(logger klog.Logger, obj interface{}) {
    	pod, ok := obj.(*v1.Pod)
    
    	// When a delete is dropped, the relist will notice a pod in the store not
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  9. pkg/controller/volume/attachdetach/cache/desired_state_of_world.go

    	// attach/detach controller.
    	// If the node does not exist this is a no-op.
    	// If the node exists but has 1 or more child volumes, an error is returned.
    	DeleteNode(nodeName k8stypes.NodeName) error
    
    	// DeletePod removes the given pod from the list of pods that reference the
    	// specified volume and are scheduled to the specified node.
    	// If no pod exists in the list of pods that reference the specified volume
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 10:42:15 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  10. pkg/controller/replicaset/replica_set.go

    		// an rs never initiates a phase change, and so is never asleep waiting for the same.
    		rsc.deletePod(logger, curPod)
    		if labelChanged {
    			// we don't need to check the oldPod.DeletionTimestamp because DeletionTimestamp cannot be unset.
    			rsc.deletePod(logger, oldPod)
    		}
    		return
    	}
    
    	curControllerRef := metav1.GetControllerOf(curPod)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 33.2K bytes
    - Viewed (0)
Back to top