- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for activePods (0.13 sec)
-
pkg/kubelet/cm/cpumanager/topology_hints_test.go
topology, _ := topology.Discover(&machineInfo) var activePods []*v1.Pod for p := range tc.assignments { pod := v1.Pod{} pod.UID = types.UID(p) for c := range tc.assignments[p] { container := v1.Container{} container.Name = c pod.Spec.Containers = append(pod.Spec.Containers, container) } activePods = append(activePods, &pod) } m := manager{ policy: &staticPolicy{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 19K bytes - Viewed (0) -
pkg/kubelet/cm/dra/manager.go
kubeClient: kubeClient, reconcilePeriod: reconcilePeriod, activePods: nil, sourcesReady: nil, } return manager, nil } // Start starts the reconcile loop of the manager. func (m *ManagerImpl) Start(activePods ActivePodsFunc, sourcesReady config.SourcesReady) error { m.activePods = activePods m.sourcesReady = sourcesReady
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 03 13:23:29 UTC 2024 - 19.4K bytes - Viewed (0) -
pkg/kubelet/nodeshutdown/nodeshutdown_manager_linux_test.go
var tests = []struct { desc string activePods []*v1.Pod shutdownGracePeriodRequested time.Duration shutdownGracePeriodCriticalPods time.Duration systemInhibitDelay time.Duration
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 29.8K bytes - Viewed (0) -
pkg/kubelet/cm/qos_container_manager_linux.go
Guaranteed: rootContainer, Burstable: qosClasses[v1.PodQOSBurstable], BestEffort: qosClasses[v1.PodQOSBestEffort], } m.getNodeAllocatable = getNodeAllocatable m.activePods = activePods // update qos cgroup tiers on startup and in periodic intervals // to ensure desired state is in sync with actual state. go wait.Until(func() { err := m.UpdateCgroups() if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 20:42:59 UTC 2024 - 13.3K bytes - Viewed (0) -
pkg/controller/job/indexed_job_utils_test.go
activePods := controller.FilterActivePods(logger, tc.pods) failedIndexes := calculateFailedIndexes(logger, &tc.job, tc.pods) _, succeededIndexes := calculateSucceededIndexes(logger, &tc.job, tc.pods) jobCtx := &syncJobCtx{ job: &tc.job, pods: tc.pods, activePods: activePods, succeededIndexes: succeededIndexes,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 27.9K bytes - Viewed (0) -
pkg/kubelet/cm/devicemanager/manager.go
return m.writeCheckpoint() } return nil } // checkPodActive checks if the given pod is still in activePods list func (m *ManagerImpl) checkPodActive(pod *v1.Pod) bool { activePods := m.activePods() for _, activePod := range activePods { if activePod.UID == pod.UID { return true } } return false }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 15 12:01:56 UTC 2024 - 43K bytes - Viewed (0) -
pkg/kubelet/cm/container_manager_linux.go
err := cm.draManager.Start(dra.ActivePodsFunc(activePods), sourcesReady) if err != nil { return fmt.Errorf("start dra manager error: %w", err) } } // Initialize CPU manager err := cm.cpuManager.Start(cpumanager.ActivePodsFunc(activePods), sourcesReady, podStatusProvider, runtimeService, containerMap) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 21 10:18:16 UTC 2024 - 35.1K bytes - Viewed (0) -
pkg/scheduler/metrics/metrics.go
} // GetGather returns the gatherer. It used by test case outside current package. func GetGather() metrics.Gatherer { return legacyregistry.DefaultGatherer } // ActivePods returns the pending pods metrics with the label active func ActivePods() metrics.GaugeMetric { return pendingPods.With(metrics.Labels{"queue": "active"}) } // BackoffPods returns the pending pods metrics with the label backoff
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Apr 27 08:22:53 UTC 2024 - 11.1K bytes - Viewed (0) -
pkg/controller/controller_utils_test.go
for i := 0; i < 20; i++ { idx := rand.Perm(numPods) randomizedPods := make([]*v1.Pod, numPods) for j := 0; j < numPods; j++ { randomizedPods[j] = &test.pods[idx[j]] } sort.Sort(ActivePods(randomizedPods)) gotOrder := make([]string, len(randomizedPods)) for i := range randomizedPods { gotOrder[i] = randomizedPods[i].Name }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 39.4K bytes - Viewed (0)