- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for thresholdsMetGracePeriod (0.34 sec)
-
pkg/kubelet/eviction/eviction_manager.go
} // determine the set of thresholds we need to drive eviction behavior (i.e. all grace periods are met) thresholds = thresholdsMetGracePeriod(thresholdsFirstObservedAt, now) debugLogThresholdsWithObservation("thresholds - grace periods satisfied", thresholds, observations) // update internal state m.Lock() m.nodeConditions = nodeConditions
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
if !found { observedAt = now } results[thresholds[i]] = observedAt } return results } // thresholdsMetGracePeriod returns the set of thresholds that have satisfied associated grace period func thresholdsMetGracePeriod(observedAt thresholdsObservedAt, now time.Time) []evictionapi.Threshold { results := []evictionapi.Threshold{} for threshold, at := range observedAt {
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
softThreshold: oldTime.Time, }, now: now.Time, result: []evictionapi.Threshold{softThreshold}, }, } for testName, testCase := range testCases { actual := thresholdsMetGracePeriod(testCase.observedAt, now.Time) if !thresholdList(actual).Equal(thresholdList(testCase.result)) { t.Errorf("Test case: %s, expected: %v, actual: %v", testName, testCase.result, actual) } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 15 23:14:12 UTC 2024 - 106.7K bytes - Viewed (0)