- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for getMinTolerationTime (0.17 sec)
-
pkg/controller/tainteviction/taint_eviction.go
for i := range taints { if taints[i].Effect == v1.TaintEffectNoExecute { result = append(result, taints[i]) } } return result } // getMinTolerationTime returns minimal toleration time from the given slice, or -1 if it's infinite. func getMinTolerationTime(tolerations []v1.Toleration) time.Duration { minTolerationTime := int64(math.MaxInt64) if len(tolerations) == 0 { return 0 }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 19.9K bytes - Viewed (0) -
pkg/controller/tainteviction/taint_eviction_test.go
{ TolerationSeconds: nil, }, { TolerationSeconds: &one, }, }, expected: oneSec, }, } for _, test := range tests { got := getMinTolerationTime(test.tolerations) if got != test.expected { t.Errorf("Incorrect min toleration time: got %v, expected %v", got, test.expected) } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 14:24:16 UTC 2024 - 31.3K bytes - Viewed (0)