- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 138 for updatePod (0.15 sec)
-
pkg/kubelet/pod_workers_test.go
holds map[types.UID]chan struct{} } // UpdatePod increments the clock after UpdatePod is called, but before the workers // are invoked, and then drains all workers before returning. The provided functions // are invoked while holding the lock to prevent workers from receiving updates. func (w *timeIncrementingWorkers) UpdatePod(options UpdatePodOptions, afterFns ...func()) { func() { w.lock.Lock()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 75.6K bytes - Viewed (0) -
pkg/kubelet/pod_workers.go
// // The podWorkerLoop is driven by updates delivered to UpdatePod and by SyncKnownPods. If a particular // sync method fails, p.workerQueue is updated with backoff but it is the responsibility of the kubelet // to trigger new UpdatePod calls. SyncKnownPods will only retry pods that are no longer known to the
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 02 13:22:37 UTC 2024 - 74.8K bytes - Viewed (0) -
pkg/scheduler/internal/cache/cache_test.go
pods = append(pods, pod) } // Create a few pods as updated versions of the above pods. var updatedPods []*v1.Pod for _, p := range pods { updatedPod := p.DeepCopy() priority := int32(1000) updatedPod.Spec.Priority = &priority updatedPods = append(updatedPods, updatedPod) } // Add a couple of pods with affinity, on the first and seconds nodes.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 17 01:38:03 UTC 2023 - 63.8K bytes - Viewed (0) -
pkg/controller/replicaset/replica_set_test.go
pod1.OwnerReferences = []metav1.OwnerReference{controllerRef1} pod1.ResourceVersion = "1" pod2 := pod1 pod2.Labels = labelMap2 pod2.ResourceVersion = "2" manager.updatePod(logger, &pod1, &pod2) expected := sets.NewString(testRSSpec1.Name) for _, name := range expected.List() { t.Logf("Expecting update for %+v", name) select { case got := <-received: if !expected.Has(got) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 69.2K bytes - Viewed (0) -
pkg/scheduler/internal/queue/scheduling_queue.go
if oldPodInfo, exists, _ := p.activeQ.Get(oldPodInfo); exists { pInfo := updatePod(oldPodInfo, newPod) p.updateNominatedPodUnlocked(logger, oldPod, pInfo.PodInfo) return p.activeQ.Update(pInfo) } // If the pod is in the backoff queue, update it there. if oldPodInfo, exists, _ := p.podBackoffQ.Get(oldPodInfo); exists { pInfo := updatePod(oldPodInfo, newPod) p.updateNominatedPodUnlocked(logger, oldPod, pInfo.PodInfo)
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/kubelet/status/status_manager_test.go
statustest "k8s.io/kubernetes/pkg/kubelet/status/testing" kubetypes "k8s.io/kubernetes/pkg/kubelet/types" "k8s.io/kubernetes/pkg/kubelet/util" ) type mutablePodManager interface { AddPod(*v1.Pod) UpdatePod(*v1.Pod) RemovePod(*v1.Pod) } // Generate new instance of test pod with the same initial value. func getTestPod() *v1.Pod { return &v1.Pod{ TypeMeta: metav1.TypeMeta{ Kind: "Pod",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 02 16:27:19 UTC 2024 - 68.1K bytes - Viewed (0) -
pkg/controller/daemon/daemon_controller.go
for _, ds := range dss { dsc.enqueueDaemonSet(ds) } } // When a pod is updated, figure out what sets manage it and wake them // up. If the labels of the pod have changed we need to awaken both the old // and new set. old and cur must be *v1.Pod types. func (dsc *DaemonSetsController) updatePod(logger klog.Logger, old, cur interface{}) { curPod := cur.(*v1.Pod) oldPod := old.(*v1.Pod)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 51.3K bytes - Viewed (0) -
pkg/controller/job/job_controller.go
for _, job := range jm.getPodJobs(pod) { jm.enqueueSyncJobBatched(logger, job) } } // When a pod is updated, figure out what job/s manage it and wake them up. // If the labels of the pod have changed we need to awaken both the old // and new job. old and cur must be *v1.Pod types. func (jm *Controller) updatePod(logger klog.Logger, old, cur interface{}) { curPod := cur.(*v1.Pod) oldPod := old.(*v1.Pod)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jun 10 23:56:37 UTC 2024 - 77.6K bytes - Viewed (0) -
pkg/controller/endpointslice/endpointslice_controller_test.go
// After adding the zone label to the Nodes and calling the event handler updateNode, AddHints should succeed. esController.nodeStore.Update(updateNode1) esController.nodeStore.Update(updateNode2) esController.updateNode(node1, updateNode1) esController.updateNode(node2, updateNode2) assert.Equal(t, 1, esController.topologyQueue.Len()) esController.processNextTopologyWorkItem(logger)
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/endpoint/endpoints_controller_test.go
newPod.Status.PodIPs[0].IP = update.podIP newPod.ResourceVersion = strconv.Itoa(resourceVersion) resourceVersion++ endpoints.podStore.Update(newPod) endpoints.updatePod(oldPod, newPod) } time.Sleep(tc.finalDelay) endpointsHandler.ValidateRequestCount(t, tc.wantRequestCount) }) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 26 06:51:56 UTC 2024 - 87.7K bytes - Viewed (0)