- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for TaintExists (0.15 sec)
-
pkg/util/taints/taints_test.go
name: "different effect", taintToFind: &v1.Taint{Key: "foo_1", Value: "bar_1", Effect: v1.TaintEffectNoSchedule}, expectedResult: false, }, } for _, c := range cases { result := TaintExists(testingTaints, c.taintToFind) if result != c.expectedResult { t.Errorf("[%s] unexpected results: %v", c.name, result) continue } } } func TestTaintKeyExists(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 16 09:23:35 UTC 2022 - 22.6K bytes - Viewed (0) -
pkg/kubelet/kubelet_node_status.go
Effect: v1.TaintEffectNoSchedule, } // Taint node with TaintNodeUnschedulable when initializing // node to avoid race condition; refer to #63897 for more detail. if node.Spec.Unschedulable && !taintutil.TaintExists(nodeTaints, &unschedulableTaint) { nodeTaints = append(nodeTaints, unschedulableTaint) } if kl.externalCloudProvider { taint := v1.Taint{ Key: cloudproviderapi.TaintExternalCloudProvider,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 31.1K bytes - Viewed (0) -
pkg/controller/controller_utils.go
if len(taints) == 0 { return nil } // Short circuit for limiting amount of API calls. if node != nil { match := false for _, taint := range taints { if taintutils.TaintExists(node.Spec.Taints, taint) { match = true break } } if !match { return nil } } firstTry := true
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 12 15:34:44 UTC 2024 - 47.6K bytes - Viewed (0)