Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getNoExecuteTaints (0.14 sec)

  1. pkg/controller/tainteviction/taint_eviction.go

    	nodeName := ""
    	oldTaints := []v1.Taint{}
    	if oldNode != nil {
    		nodeName = oldNode.Name
    		oldTaints = getNoExecuteTaints(oldNode.Spec.Taints)
    	}
    
    	newTaints := []v1.Taint{}
    	if newNode != nil {
    		nodeName = newNode.Name
    		newTaints = getNoExecuteTaints(newNode.Spec.Taints)
    	}
    
    	if oldNode != nil && newNode != nil && helper.Semantic.DeepEqual(oldTaints, newTaints) {
    		return
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  2. pkg/controller/tainteviction/taint_eviction_test.go

    		{
    			Key:    "one",
    			Value:  "one",
    			Effect: corev1.TaintEffectNoExecute,
    		},
    		{
    			Key:    "two",
    			Value:  "two",
    			Effect: corev1.TaintEffectNoSchedule,
    		},
    	}
    	taints = getNoExecuteTaints(taints)
    	if len(taints) != 1 || taints[0].Key != "one" {
    		t.Errorf("Filtering doesn't work. Got %v", taints)
    	}
    }
    
    func TestCreatePod(t *testing.T) {
    	testCases := []struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 31.3K bytes
    - Viewed (0)
Back to top