- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for ObservedPodOnWatch (0.3 sec)
-
pkg/kubelet/util/pod_startup_latency_tracker_test.go
t.Fatal(err) } // any new pod observations should not impact the metrics, as the pod should be recorder only once tracker.ObservedPodOnWatch(podStarted, frozenTime.Add(time.Second*150)) tracker.ObservedPodOnWatch(podStarted, frozenTime.Add(time.Second*200)) tracker.ObservedPodOnWatch(podStarted, frozenTime.Add(time.Second*250))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 15 06:09:49 UTC 2023 - 13.7K bytes - Viewed (0) -
pkg/kubelet/util/pod_startup_latency_tracker.go
"k8s.io/utils/clock" ) // PodStartupLatencyTracker records key moments for startup latency calculation, // e.g. image pulling or pod observed running on watch. type PodStartupLatencyTracker interface { ObservedPodOnWatch(pod *v1.Pod, when time.Time) RecordImageStartedPulling(podUID types.UID) RecordImageFinishedPulling(podUID types.UID) RecordStatusUpdated(pod *v1.Pod) DeletePodStartupState(podUID types.UID) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 15 06:09:49 UTC 2023 - 5.5K bytes - Viewed (0) -
pkg/kubelet/config/config.go
// PodConfigNotificationIncremental delivers ADD, UPDATE, DELETE, REMOVE, RECONCILE to the update channel. PodConfigNotificationIncremental ) type podStartupSLIObserver interface { ObservedPodOnWatch(pod *v1.Pod, when time.Time) } // PodConfig is a configuration mux that merges many sources of pod configuration into a single // consistent structure, and then delivers incremental change notifications to listeners
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/kubelet/config/config_test.go
s[i], s[j] = s[j], s[i] } func (s sortedPods) Less(i, j int) bool { return s[i].Namespace < s[j].Namespace } type mockPodStartupSLIObserver struct{} func (m *mockPodStartupSLIObserver) ObservedPodOnWatch(pod *v1.Pod, when time.Time) {} func CreateValidPod(name, namespace string) *v1.Pod { return &v1.Pod{ ObjectMeta: metav1.ObjectMeta{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 17.1K bytes - Viewed (0)