- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for GetMatchingTolerations (0.49 sec)
-
pkg/apis/core/v1/helper/helpers.go
if !updated { newTolerations = append(newTolerations, *toleration) } spec.Tolerations = newTolerations return true } // GetMatchingTolerations returns true and list of Tolerations matching all Taints if all are tolerated, or false otherwise. func GetMatchingTolerations(taints []v1.Taint, tolerations []v1.Toleration) (bool, []v1.Toleration) { if len(taints) == 0 { return true, []v1.Toleration{} }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 30 23:03:54 UTC 2024 - 11.4K bytes - Viewed (0) -
pkg/controller/tainteviction/taint_eviction.go
taints []v1.Taint, now time.Time, ) { logger := klog.FromContext(ctx) if len(taints) == 0 { tc.cancelWorkWithEvent(logger, podNamespacedName) } allTolerated, usedTolerations := v1helper.GetMatchingTolerations(taints, tolerations) if !allTolerated { logger.V(2).Info("Not all taints are tolerated after update for pod on node", "pod", podNamespacedName.String(), "node", klog.KRef("", nodeName))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 19.9K bytes - Viewed (0)