- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 184 for untaint (0.33 sec)
-
staging/src/k8s.io/api/core/v1/toleration_test.go
description string toleration Toleration taint Taint expectTolerated bool }{ { description: "toleration and taint have the same key and effect, and operator is Exists, and taint has no value, expect tolerated", toleration: Toleration{ Key: "foo", Operator: TolerationOpExists, Effect: TaintEffectNoSchedule, }, taint: Taint{ Key: "foo", Effect: TaintEffectNoSchedule,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 22 17:21:42 UTC 2017 - 3.4K bytes - Viewed (0) -
pkg/apis/core/taint_test.go
}, { taint: &Taint{ Key: "foo", }, expectedString: "foo", }, { taint: &Taint{ Key: "foo", Value: "bar", }, expectedString: "foo=bar:", }, } for i, tc := range testCases { if tc.expectedString != tc.taint.ToString() { t.Errorf("[%v] expected taint %v converted to %s, got %s", i, tc.taint, tc.expectedString, tc.taint.ToString()) } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 16 13:06:01 UTC 2019 - 2.9K bytes - Viewed (0) -
staging/src/k8s.io/api/core/v1/toleration.go
// this combination means to match all taint values and all taint keys. func (t *Toleration) ToleratesTaint(taint *Taint) bool { if len(t.Effect) > 0 && t.Effect != taint.Effect { return false } if len(t.Key) > 0 && t.Key != taint.Key { return false } // TODO: Use proper defaulting when Toleration becomes a field of PodSpec switch t.Operator { // empty operator means Equal case "", TolerationOpEqual:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Dec 18 04:27:38 UTC 2022 - 2K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/helper/taint_test.go
tests := []struct { name string taint *v1.Taint expected bool }{ { name: "should include the taints with NoSchedule effect", taint: &v1.Taint{ Effect: v1.TaintEffectNoSchedule, }, expected: true, }, { name: "should include the taints with NoExecute effect", taint: &v1.Taint{ Effect: v1.TaintEffectNoExecute, }, expected: true, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Sep 10 01:04:30 UTC 2022 - 1.5K bytes - Viewed (0) -
pkg/controller/nodelifecycle/node_lifecycle_controller_test.go
return } // We should not see any taint on the node(especially the Not-Ready taint with NoExecute effect). if taintutils.TaintExists(node3.Spec.Taints, NotReadyTaintTemplate) || len(node3.Spec.Taints) > 0 { t.Errorf("Found taint %v in %v, which should not be present", NotReadyTaintTemplate, node3.Spec.Taints) } } // TestApplyNoExecuteTaintsToNodesEnqueueTwice ensures we taint every node with NoExecute even if enqueued twice
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 26 03:26:45 UTC 2024 - 119K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/tainttoleration/taint_toleration_test.go
node: nodeWithTaints("nodeA", []v1.Taint{{Key: "foo", Value: "bar", Effect: "NoSchedule"}}), wantStatus: framework.NewStatus(framework.UnschedulableAndUnresolvable, "node(s) had untolerated taint {foo: bar}"), }, { name: "The pod has a toleration that keys and values match the taint on the node, the effect of toleration is empty, " + "and the effect of taint is NoSchedule. Pod can be scheduled onto the node",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 13:26:09 UTC 2024 - 17.5K bytes - Viewed (0) -
cmd/kubeadm/app/phases/markcontrolplane/markcontrolplane.go
markControlPlaneNode(n, taints) }) } func taintExists(taint v1.Taint, taints []v1.Taint) bool { for _, t := range taints { if t == taint { return true } } return false } func markControlPlaneNode(n *v1.Node, taints []v1.Taint) { for _, label := range labelsToAdd { n.ObjectMeta.Labels[label] = "" } for _, nt := range n.Spec.Taints {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jan 13 15:45:54 UTC 2022 - 2K bytes - Viewed (0) -
plugin/pkg/admission/nodetaint/admission.go
// a new node may receive the taint with some delay causing pods to be // scheduled on a not-ready node. Node controller will remove the taint // when the node becomes ready. addNotReadyTaint(node) return nil } func addNotReadyTaint(node *api.Node) { notReadyTaint := api.Taint{ Key: v1.TaintNodeNotReady, Effect: api.TaintEffectNoSchedule, } for _, taint := range node.Spec.Taints {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 06 04:56:21 UTC 2019 - 2.5K bytes - Viewed (0) -
cmd/kubeadm/app/phases/markcontrolplane/markcontrolplane_test.go
}, existingTaints: []v1.Taint{kubeadmconstants.ControlPlaneTaint}, newTaints: []v1.Taint{kubeadmconstants.ControlPlaneTaint}, expectedPatch: `{}`, }, { name: "has taint and no new taints wanted", existingLabels: []string{ kubeadmconstants.LabelNodeRoleControlPlane, kubeadmconstants.LabelExcludeFromExternalLB, }, existingTaints: []v1.Taint{ {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Aug 25 14:22:20 UTC 2022 - 5K bytes - Viewed (0) -
plugin/pkg/admission/nodetaint/admission_test.go
operation admission.Operation options runtime.Object expectedTaints []api.Taint }{ { name: "notReady taint is added on creation", node: myNodeObj, operation: admission.Create, options: &metav1.CreateOptions{}, expectedTaints: []api.Taint{notReadyTaint}, }, { name: "already tainted node is not tainted again",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 06 04:56:21 UTC 2019 - 3.1K bytes - Viewed (0)