Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 179 for MainKt (0.13 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  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