Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 34 for DeletePod (0.18 sec)

  1. pkg/controller/controller_utils.go

    	CreatePodsWithGenerateName(ctx context.Context, namespace string, template *v1.PodTemplateSpec, object runtime.Object, controllerRef *metav1.OwnerReference, generateName string) error
    	// DeletePod deletes the pod identified by podID.
    	DeletePod(ctx context.Context, namespace string, podID string, object runtime.Object) error
    	// PatchPod patches the pod.
    	PatchPod(ctx context.Context, namespace, name string, data []byte) error
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 12 15:34:44 UTC 2024
    - 47.6K bytes
    - Viewed (0)
  2. pilot/pkg/serviceregistry/kube/controller/ambient/ambientindex_workloadentry_test.go

    	// Send update for the workloads as well...
    	s.assertEvent(t, s.wleXdsName("name1"),
    		s.wleXdsName("name2"),
    		s.wleXdsName("name3"),
    		s.svcXdsName("svc1"))
    
    	// Delete a waypoint pod
    	s.deletePod(t, "waypoint2-ns-pod")
    	s.assertEvent(t, s.podXdsName("waypoint2-ns-pod")) // only expect event on the single waypoint pod
    
    	// Adding a new WorkloadEntry should also see the waypoint
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 01:04:50 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  3. pkg/controller/endpoint/endpoints_controller.go

    	e.servicesSynced = serviceInformer.Informer().HasSynced
    
    	podInformer.Informer().AddEventHandler(cache.ResourceEventHandlerFuncs{
    		AddFunc:    e.addPod,
    		UpdateFunc: e.updatePod,
    		DeleteFunc: e.deletePod,
    	})
    	e.podLister = podInformer.Lister()
    	e.podsSynced = podInformer.Informer().HasSynced
    
    	endpointsInformer.Informer().AddEventHandler(cache.ResourceEventHandlerFuncs{
    		DeleteFunc: e.onEndpointsDelete,
    	})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  4. pkg/controller/volume/attachdetach/util/util.go

    				logger.V(10).Info("Failed to delete volume for pod from desiredStateOfWorld. GetUniqueVolumeNameFromSpec failed", "pod", klog.KObj(pod), "volumeName", podVolume.Name, "err", err)
    				continue
    			}
    			desiredStateOfWorld.DeletePod(
    				uniquePodName, uniqueVolumeName, nodeName)
    		}
    	}
    	return
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 10:42:15 UTC 2024
    - 12K bytes
    - Viewed (0)
  5. pkg/controller/daemon/daemon_controller_test.go

    	f.expectations.CreationObserved(klog.FromContext(ctx), dsKey)
    
    	return nil
    }
    
    func (f *fakePodControl) DeletePod(ctx context.Context, namespace string, podID string, object runtime.Object) error {
    	f.Lock()
    	defer f.Unlock()
    	if err := f.FakePodControl.DeletePod(ctx, namespace, podID, object); err != nil {
    		return fmt.Errorf("failed to delete pod %q", podID)
    	}
    	pod, ok := f.podIDMap[podID]
    	if !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.4K bytes
    - Viewed (0)
  6. pkg/scheduler/internal/queue/scheduling_queue_test.go

    `,
    		},
    		{
    			name: "add pods to activeQ/unschedulablePods and then delete some Pods",
    			operations: []operation{
    				addPodActiveQ,
    				addPodUnschedulablePods,
    				deletePod,
    				deletePod,
    				deletePod,
    			},
    			operands: [][]*framework.QueuedPodInfo{
    				pInfos[:30],
    				pInfos[30:],
    				pInfos[:2],
    				pInfos[30:33],
    				pInfos[50:54],
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 146.9K bytes
    - Viewed (0)
  7. pkg/kubelet/kubelet.go

    		}
    	}
    	return podsToSync
    }
    
    // deletePod deletes the pod from the internal state of the kubelet by:
    // 1.  stopping the associated pod worker asynchronously
    // 2.  signaling to kill the pod by sending on the podKillingCh channel
    //
    // deletePod returns an error if not all sources are ready or the pod is not
    // found in the runtime cache.
    func (kl *Kubelet) deletePod(pod *v1.Pod) error {
    	if pod == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 126.1K bytes
    - Viewed (0)
  8. pkg/scheduler/framework/preemption/preemption.go

    						errCh.SendErrorWithCancel(err, cancel)
    						return
    					}
    				}
    			}
    			if err := util.DeletePod(ctx, cs, victim); err != nil {
    				logger.Error(err, "Preempted pod", "pod", klog.KObj(victim), "preemptor", klog.KObj(pod))
    				errCh.SendErrorWithCancel(err, cancel)
    				return
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 25.1K bytes
    - Viewed (0)
  9. pkg/controller/controller_utils_test.go

    	podControl := RealPodControl{
    		KubeClient: fakeClient,
    		Recorder:   &record.FakeRecorder{},
    	}
    
    	controllerSpec := newReplicationController(1)
    
    	err := podControl.DeletePod(context.TODO(), "namespace-name", "podName", controllerSpec)
    	assert.True(t, apierrors.IsNotFound(err))
    }
    
    func TestCountTerminatingPods(t *testing.T) {
    	now := metav1.Now()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  10. pilot/pkg/serviceregistry/kube/controller/controller_test.go

    	addPod := func(name, ip string) {
    		pod := generatePod(ip, name, "nsA", name, "node1", map[string]string{"app": "prod-app"}, map[string]string{})
    		addPods(t, controller, fx, pod)
    	}
    	deletePod := func(name, ip string) {
    		if err := controller.client.Kube().CoreV1().Pods("nsA").Delete(context.TODO(), name, metav1.DeleteOptions{}); err != nil {
    			t.Fatal(err)
    		}
    		retry.UntilSuccessOrFail(t, func() error {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 85K bytes
    - Viewed (0)
Back to top