- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 67 for oldpod (0.31 sec)
-
pkg/scheduler/internal/cache/cache.go
cache.assumedPods.Insert(key) } return nil } // Assumes that lock is already acquired. func (cache *cacheImpl) updatePod(logger klog.Logger, oldPod, newPod *v1.Pod) error { if err := cache.removePod(logger, oldPod); err != nil { return err } return cache.addPod(logger, newPod, false) } // Assumes that lock is already acquired. // Removes a pod from the cached node info. If the node information was already
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 24 09:56:48 UTC 2023 - 24.9K bytes - Viewed (0) -
pkg/kubelet/pod/pod_manager.go
} func (pm *basicManager) AddPod(pod *v1.Pod) { pm.UpdatePod(pod) } func (pm *basicManager) UpdatePod(pod *v1.Pod) { pm.lock.Lock() defer pm.lock.Unlock() pm.updatePodsInternal(pod) } // updateMetrics updates the metrics surfaced by the pod manager. // oldPod or newPod may be nil to signify creation or deletion. func updateMetrics(oldPod, newPod *v1.Pod) { var numEC int
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:00 UTC 2024 - 11.9K bytes - Viewed (0) -
pkg/controller/volume/pvcprotection/pvc_protection_controller.go
// where it is blocking deletion of a PVC not referenced by Y, otherwise // such PVC will never be deleted. if oldPod := c.parsePod(old); oldPod != nil && oldPod.UID != pod.UID { c.enqueuePVCs(logger, oldPod, true) } } } func (*Controller) parsePod(obj interface{}) *v1.Pod { if obj == nil { return nil } pod, ok := obj.(*v1.Pod) if !ok {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 14K bytes - Viewed (0) -
pkg/api/pod/warnings.go
"k8s.io/kubernetes/pkg/features" ) func GetWarningsForPod(ctx context.Context, pod, oldPod *api.Pod) []string { if pod == nil { return nil } var ( oldSpec *api.PodSpec oldMeta *metav1.ObjectMeta ) if oldPod != nil { oldSpec = &oldPod.Spec oldMeta = &oldPod.ObjectMeta } return warningsForPodSpecAndMeta(nil, &pod.Spec, &pod.ObjectMeta, oldSpec, oldMeta) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 17:51:48 UTC 2024 - 16.6K bytes - Viewed (0) -
pkg/api/pod/util.go
) if pod != nil { podSpec = &pod.Spec podStatus = &pod.Status podAnnotations = pod.Annotations } if oldPod != nil { oldPodSpec = &oldPod.Spec oldPodStatus = &oldPod.Status oldPodAnnotations = oldPod.Annotations } dropDisabledFields(podSpec, podAnnotations, oldPodSpec, oldPodAnnotations) dropDisabledPodStatusFields(podStatus, oldPodStatus, podSpec, oldPodSpec) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 41.3K bytes - Viewed (0) -
plugin/pkg/admission/noderestriction/admission.go
} // make copies for comparison oldPVC = oldPVC.DeepCopy() newPVC = newPVC.DeepCopy() // zero out resourceVersion to avoid comparing differences, // since the new object could leave it empty to indicate an unconditional update oldPVC.ObjectMeta.ResourceVersion = "" newPVC.ObjectMeta.ResourceVersion = "" oldPVC.Status.Capacity = nil newPVC.Status.Capacity = nil
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 21:22:55 UTC 2024 - 23.6K bytes - Viewed (0) -
pkg/api/pod/warnings_test.go
}, Overhead: resources, Volumes: []api.Volume{ {Name: "a"}, {Name: "b"}, }, }, } oldPod := &api.Pod{} b.ResetTimer() for i := 0; i < b.N; i++ { w := GetWarningsForPod(ctx, pod, oldPod) if len(w) > 0 { b.Fatalf("expected 0 warnings, got %q", w) } } } func BenchmarkWarnings(b *testing.B) { ctx := context.TODO()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 17:51:48 UTC 2024 - 42.1K bytes - Viewed (0) -
pkg/scheduler/framework/interface.go
// DeleteNominatedPodIfExists deletes nominatedPod from internal cache. It's a no-op if it doesn't exist. DeleteNominatedPodIfExists(pod *v1.Pod) // UpdateNominatedPod updates the <oldPod> with <newPod>. UpdateNominatedPod(logger klog.Logger, oldPod *v1.Pod, newPodInfo *PodInfo) // NominatedPodsForNode returns nominatedPods on the given node. NominatedPodsForNode(nodeName string) []*PodInfo }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 31 15:52:16 UTC 2024 - 35.4K bytes - Viewed (0) -
pkg/controller/endpointslice/endpointslice_controller.go
func (c *Controller) deletePod(obj interface{}) { pod := endpointsliceutil.GetPodFromDeleteAction(obj) if pod != nil { c.addPod(pod) } } func (c *Controller) addNode() { c.topologyQueue.Add(topologyQueueItemKey) } func (c *Controller) updateNode(old, cur interface{}) { oldNode := old.(*v1.Node) curNode := cur.(*v1.Node)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 08:33:32 UTC 2024 - 23.6K bytes - Viewed (0) -
pkg/registry/batch/job/strategy.go
newJob := obj.(*batch.Job) oldJob := old.(*batch.Job) newJob.Spec = oldJob.Spec } func (jobStatusStrategy) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList { newJob := obj.(*batch.Job) oldJob := old.(*batch.Job) opts := getStatusValidationOptions(newJob, oldJob) return batchvalidation.ValidateJobUpdateStatus(newJob, oldJob, opts) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 08 16:43:24 UTC 2024 - 18.4K bytes - Viewed (0)