- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for PodUpdate (0.4 sec)
-
pkg/kubelet/config/config_test.go
// should register an empty PodUpdate operation podUpdate := CreatePodUpdate(kubetypes.SET, TestSource) channel <- podUpdate expectPodUpdate(t, ch, CreatePodUpdate(test.op, TestSource)) // should ignore following empty sets podUpdate = CreatePodUpdate(kubetypes.SET, TestSource) channel <- podUpdate podUpdate = CreatePodUpdate(kubetypes.ADD, TestSource, CreateValidPod("foo", "new"))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 17.1K bytes - Viewed (0) -
pkg/controller/tainteviction/taint_eviction.go
} func (tc *Controller) handlePodUpdate(ctx context.Context, podUpdate podUpdateItem) { pod, err := tc.podLister.Pods(podUpdate.podNamespace).Get(podUpdate.podName) logger := klog.FromContext(ctx) if err != nil { if apierrors.IsNotFound(err) { // Delete podNamespacedName := types.NamespacedName{Namespace: podUpdate.podNamespace, Name: podUpdate.podName} logger.V(4).Info("Noticed pod deletion", "pod", podNamespacedName)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 19.9K bytes - Viewed (0) -
pkg/kubelet/config/config.go
} s.pods[source] = pods adds = &kubetypes.PodUpdate{Op: kubetypes.ADD, Pods: copyPods(addPods), Source: source} updates = &kubetypes.PodUpdate{Op: kubetypes.UPDATE, Pods: copyPods(updatePods), Source: source} deletes = &kubetypes.PodUpdate{Op: kubetypes.DELETE, Pods: copyPods(deletePods), Source: source} removes = &kubetypes.PodUpdate{Op: kubetypes.REMOVE, Pods: copyPods(removePods), Source: source}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 16.7K bytes - Viewed (0) -
pkg/scheduler/internal/queue/events.go
// ForceActivate is the event when a pod is moved from unschedulablePods/backoffQ // to activeQ. Usually it's triggered by plugin implementations. ForceActivate = "ForceActivate" // PodUpdate is the event when a pod is updated PodUpdate = "PodUpdate" ) var ( // AssignedPodAdd is the event when a pod is added that causes pods with matching affinity terms // to be more schedulable.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 13:26:09 UTC 2024 - 6.4K bytes - Viewed (0) -
pkg/controller/endpointslice/endpointslice_controller_test.go
func TestPodUpdatesBatching(t *testing.T) { t.Parallel() resourceVersion := 1 type podUpdate struct { delay time.Duration podName string podIP string } tests := []struct { name string batchPeriod time.Duration podsCount int updates []podUpdate finalDelay time.Duration wantRequestCount int }{ {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 08:33:32 UTC 2024 - 65.5K bytes - Viewed (0) -
pkg/controller/volume/attachdetach/attach_detach_controller.go
podInformer.Informer().AddEventHandler(kcache.ResourceEventHandlerFuncs{ AddFunc: func(obj interface{}) { adc.podAdd(logger, obj) }, UpdateFunc: func(oldObj, newObj interface{}) { adc.podUpdate(logger, oldObj, newObj) }, DeleteFunc: func(obj interface{}) { adc.podDelete(logger, obj) }, }) // This custom indexer will index pods by its PVC keys. Then we don't need
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 32.6K bytes - Viewed (0) -
pkg/controller/endpoint/endpoints_controller_test.go
func TestPodUpdatesBatching(t *testing.T) { type podUpdate struct { delay time.Duration podName string podIP string } tests := []struct { name string batchPeriod time.Duration podsCount int updates []podUpdate finalDelay time.Duration wantRequestCount int }{ {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 26 06:51:56 UTC 2024 - 87.7K bytes - Viewed (0) -
pkg/scheduler/internal/queue/scheduling_queue.go
if queue != unschedulablePods { logger.V(5).Info("Pod moved to an internal scheduling queue because the Pod is updated", "pod", klog.KObj(newPod), "event", PodUpdate, "queue", queue) p.unschedulablePods.delete(usPodInfo.Pod, gated) } if queue == activeQ { p.cond.Broadcast() } return nil } if isPodUpdated(oldPod, newPod) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 13:26:09 UTC 2024 - 61.4K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/noderesources/fit.go
func (f *Fit) EventsToRegister() []framework.ClusterEventWithHint { podActionType := framework.Delete if f.enableInPlacePodVerticalScaling { // If InPlacePodVerticalScaling (KEP 1287) is enabled, then PodUpdate event should be registered // for this plugin since a Pod update may free up resources that make other Pods schedulable. podActionType |= framework.Update } return []framework.ClusterEventWithHint{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 13:26:09 UTC 2024 - 20.2K bytes - Viewed (0) -
pkg/kubelet/kubelet.go
ListenAndServeReadOnly(address net.IP, port uint, tp trace.TracerProvider) ListenAndServePodResources() Run(<-chan kubetypes.PodUpdate) RunOnce(<-chan kubetypes.PodUpdate) ([]RunPodResult, error) } // Dependencies is a bin for things we might consider "injected dependencies" -- objects constructed
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 14 16:09:17 UTC 2024 - 126.1K bytes - Viewed (0)