- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for makeSignalObservations (0.15 sec)
-
pkg/kubelet/eviction/eviction_manager.go
} } } // make observations and get a function to derive pod usage stats relative to those observations. observations, statsFunc := makeSignalObservations(summary) debugLogObservations("observations", observations) // determine the set of thresholds met independent of grace period thresholds = thresholdsMet(thresholds, observations, false)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 27 18:55:56 UTC 2024 - 24.6K bytes - Viewed (0) -
pkg/kubelet/eviction/helpers.go
return a[i].Signal == evictionapi.SignalMemoryAvailable || a[i].Signal == evictionapi.SignalAllocatableMemoryAvailable || !jSignalHasResource } // makeSignalObservations derives observations using the specified summary provider. func makeSignalObservations(summary *statsapi.Summary) (signalObservations, statsFunc) { // build the function to work against for pod stats statsFunc := cachedStatsFunc(summary.Pods)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 01 18:46:33 UTC 2023 - 53.6K bytes - Viewed (0) -
pkg/kubelet/eviction/helpers_test.go
if res.CmpInt64(int64(allocatableMemoryCapacity)) != 0 { t.Errorf("Expected Threshold %v to be equal to value %v", res.Value(), allocatableMemoryCapacity) } actualObservations, statsFunc := makeSignalObservations(fakeStats) allocatableMemQuantity, found := actualObservations[evictionapi.SignalAllocatableMemoryAvailable] if !found { t.Errorf("Expected allocatable memory observation, but didnt find one") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 15 23:14:12 UTC 2024 - 106.7K bytes - Viewed (0)