Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 209 for MainKt (0.1 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. pkg/controller/tainteviction/taint_eviction_test.go

    	go controller.Run(ctx)
    
    	// no taint
    	nodeIndexer.Add(untaintedNode)
    	controller.handleNodeUpdate(ctx, nodeUpdateItem{"node1"})
    	// verify pod is not queued for deletion
    	if controller.taintEvictionQueue.GetWorkerUnsafe(podNamespacedName.String()) != nil {
    		t.Fatalf("pod queued for deletion with no taints")
    	}
    
    	// no taint -> infinitely tolerated taint
    	nodeIndexer.Update(singleTaintedNode)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 31.3K bytes
    - Viewed (0)
  7. 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)
  8. src/main/webapp/js/admin/plugins/form-validator/location.js

    ine","panama","papua new guinea","paraguay","peru","philippines","pitcairn","poland","portugal","puerto rico","qatar","réunion","romania","russia","rwanda","saint barthélemy","saint helena","ascension and tristan da cunha","Ascension and tristan da cunha","saint kitts and nevis","saint lucia","saint martin","saint pierre and miquelon","saint vincent and the grenadines","samoa","san marino","sao tome and principe","saudi arabia","senegal","serbia","seychelles","sierra leone","singapore","sint maa...
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Mon Jan 01 05:12:47 UTC 2018
    - 5.2K bytes
    - Viewed (0)
  9. tests/integration/ambient/untaint/untaint_test.go

    				if err != nil {
    					return err
    				}
    
    				for _, node := range nodes.Items {
    					for _, taint := range node.Spec.Taints {
    						if taint.Key == "cni.istio.io/not-ready" {
    							return fmt.Errorf("node %v still has taint %v", node.Name, taint)
    						}
    					}
    				}
    				return nil
    			}, retry.Delay(1*time.Second), retry.Timeout(80*time.Second))
    		})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 16:44:32 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  10. pilot/pkg/controllers/untaint/nodeuntainter.go

    	if err != nil {
    		return fmt.Errorf("failed to update node %v after adding taint: %v", node.Name, err)
    	}
    	log.Debugf("removed readiness taint from node %v", node.Name)
    	return nil
    }
    
    // deleteTaint removes all the taints that have the same key and effect to given taintToDelete.
    func deleteTaint(taints []v1.Taint) []v1.Taint {
    	newTaints := []v1.Taint{}
    	for i := range taints {
    		if taints[i].Key == TaintName {
    			continue
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 13 00:50:31 UTC 2024
    - 6.9K bytes
    - Viewed (0)
Back to top