Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 184 for untaint (0.24 sec)

  1. pkg/controller/controller_utils_test.go

    		nodeName       string
    		taintsToRemove []*v1.Taint
    		expectedTaints []v1.Taint
    		requestCount   int
    	}{
    		{
    			name: "remove one taint from node",
    			nodeHandler: &testutil.FakeNodeHandler{
    				Existing: []*v1.Node{
    					{
    						ObjectMeta: metav1.ObjectMeta{
    							Name: "node1",
    						},
    						Spec: v1.NodeSpec{
    							Taints: []v1.Taint{
    								{Key: "key1", Value: "value1", Effect: "NoSchedule"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  2. pkg/scheduler/eventhandlers_test.go

    		Name      string
    		Changed   bool
    		OldTaints []v1.Taint
    		NewTaints []v1.Taint
    	}{
    		{
    			Name:      "no taint changed",
    			Changed:   false,
    			OldTaints: []v1.Taint{{Key: "key", Value: "value"}},
    			NewTaints: []v1.Taint{{Key: "key", Value: "value"}},
    		},
    		{
    			Name:      "taint value changed",
    			Changed:   true,
    			OldTaints: []v1.Taint{{Key: "key", Value: "value1"}},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 10 14:38:54 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  3. pkg/controller/nodelifecycle/node_lifecycle_controller.go

    			default:
    				// It seems that the Node is ready again, so there's no need to taint it.
    				logger.V(4).Info("Node was in a taint queue, but it's ready now. Ignoring taint request", "node", klog.KRef("", value.Value))
    				return true, 0
    			}
    			result := controllerutil.SwapNodeControllerTaint(ctx, nc.kubeClient, []*v1.Taint{&taintToAdd}, []*v1.Taint{&oppositeTaint}, node)
    			if result {
    				// Count the number of evictions.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/tainttoleration/taint_toleration.go

    	node := nodeInfo.Node()
    
    	taint, isUntolerated := v1helper.FindMatchingUntoleratedTaint(node.Spec.Taints, pod.Spec.Tolerations, helper.DoNotScheduleTaintsFilterFunc())
    	if !isUntolerated {
    		return nil
    	}
    
    	errReason := fmt.Sprintf("node(s) had untolerated taint {%s: %s}", taint.Key, taint.Value)
    	return framework.NewStatus(framework.UnschedulableAndUnresolvable, errReason)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  5. pkg/util/flag/flags.go

    	if len(*t.Value) == 0 {
    		return ""
    	}
    	var taints []string
    	for _, taint := range *t.Value {
    		taints = append(taints, fmt.Sprintf("%s=%s:%s", taint.Key, taint.Value, taint.Effect))
    	}
    	return strings.Join(taints, ",")
    }
    
    // Type gets the flag type
    func (t RegisterWithTaintsVar) Type() string {
    	return "[]v1.Taint"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 19 03:30:46 UTC 2022
    - 7.8K bytes
    - Viewed (0)
  6. pkg/util/flag/flags_test.go

    func TestTaintsVar(t *testing.T) {
    	cases := []struct {
    		f   string
    		err bool
    		t   []v1.Taint
    	}{
    		{
    			f: "",
    			t: []v1.Taint(nil),
    		},
    		{
    			f: "--t=foo=bar:NoSchedule",
    			t: []v1.Taint{{Key: "foo", Value: "bar", Effect: "NoSchedule"}},
    		},
    		{
    			f: "--t=baz:NoSchedule",
    			t: []v1.Taint{{Key: "baz", Value: "", Effect: "NoSchedule"}},
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 14 10:45:23 UTC 2021
    - 8.8K bytes
    - Viewed (0)
  7. pkg/controller/tainteviction/taint_eviction.go

    			Message: "Taint manager: deleting due to NoExecute taint",
    		})
    		if updated {
    			if _, _, _, err := utilpod.PatchPodStatus(ctx, c, pod.Namespace, pod.Name, pod.UID, pod.Status, *newStatus); err != nil {
    				return err
    			}
    		}
    	}
    	return c.CoreV1().Pods(ns).Delete(ctx, name, metav1.DeleteOptions{})
    }
    
    func getNoExecuteTaints(taints []v1.Taint) []v1.Taint {
    	result := []v1.Taint{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  8. pkg/kubelet/lifecycle/predicate_test.go

    				Spec: v1.NodeSpec{
    					Taints: []v1.Taint{
    						{Key: "foo", Effect: v1.TaintEffectNoSchedule},
    						{Key: "bar", Effect: v1.TaintEffectNoExecute},
    					},
    				},
    				Status: v1.NodeStatus{Capacity: makeResources(10, 20, 32, 0, 0, 0), Allocatable: makeAllocatableResources(10, 20, 32, 0, 0, 0)},
    			},
    			name: "taint/toleration match",
    		},
    		{
    			pod:      &v1.Pod{},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 23:13:50 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  9. analysis/analysis-api-standalone/tests-gen/org/jetbrains/kotlin/analysis/api/standalone/fir/test/cases/generated/cases/components/subtyping/FirStandaloneNormalAnalysisSourceModuleSubtypingTestGenerated.java

        runTest("analysis/analysis-api/testData/components/subtyping/subtypingAndEquality/HumanHumanListError.kt");
      }
    
      @Test
      @TestMetadata("IntInt.kt")
      public void testIntInt() {
        runTest("analysis/analysis-api/testData/components/subtyping/subtypingAndEquality/IntInt.kt");
      }
    
      @Test
      @TestMetadata("IntString.kt")
      public void testIntString() {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon Apr 29 15:15:02 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  10. pkg/controller/util/node/controller_utils.go

    				err))
    		return false
    	}
    	logger.V(4).Info("Added taint to node", "taint", taintsToAdd, "node", klog.KRef("", node.Name))
    
    	err = controller.RemoveTaintOffNode(ctx, kubeClient, node.Name, node, taintsToRemove...)
    	if err != nil {
    		utilruntime.HandleError(
    			fmt.Errorf(
    				"unable to remove %+v unneeded taint from unresponsive Node %q: %v",
    				taintsToRemove,
    				node.Name,
    				err))
    		return false
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 05 23:39:52 UTC 2023
    - 10.6K bytes
    - Viewed (0)
Back to top