Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for DoNotScheduleTaintsFilterFunc (0.37 sec)

  1. pkg/scheduler/framework/plugins/helper/taint.go

    limitations under the License.
    */
    
    package helper
    
    import v1 "k8s.io/api/core/v1"
    
    // DoNotScheduleTaintsFilterFunc returns the filter function that can
    // filter out the node taints that reject scheduling Pod on a Node.
    func DoNotScheduleTaintsFilterFunc() func(t *v1.Taint) bool {
    	return func(t *v1.Taint) bool {
    		// PodToleratesNodeTaints is only interested in NoSchedule and NoExecute taints.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Sep 10 01:04:30 UTC 2022
    - 1K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/plugins/tainttoleration/taint_toleration.go

    	if originalNode != nil {
    		_, wasUntolerated = v1helper.FindMatchingUntoleratedTaint(originalNode.Spec.Taints, pod.Spec.Tolerations, helper.DoNotScheduleTaintsFilterFunc())
    	}
    
    	_, isUntolerated := v1helper.FindMatchingUntoleratedTaint(modifiedNode.Spec.Taints, pod.Spec.Tolerations, helper.DoNotScheduleTaintsFilterFunc())
    
    	if wasUntolerated && !isUntolerated {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/helper/taint_test.go

    		{
    			name: "should not include the taints with PreferNoSchedule effect",
    			taint: &v1.Taint{
    				Effect: v1.TaintEffectPreferNoSchedule,
    			},
    			expected: false,
    		},
    	}
    
    	filterPredicate := DoNotScheduleTaintsFilterFunc()
    
    	for i := range tests {
    		test := tests[i]
    		t.Run(test.name, func(t *testing.T) {
    			if got := filterPredicate(test.taint); got != test.expected {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Sep 10 01:04:30 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/podtopologyspread/common.go

    			return false
    		}
    	}
    
    	if tsc.NodeTaintsPolicy == v1.NodeInclusionPolicyHonor {
    		if _, untolerated := v1helper.FindMatchingUntoleratedTaint(node.Spec.Taints, pod.Spec.Tolerations, helper.DoNotScheduleTaintsFilterFunc()); untolerated {
    			return false
    		}
    	}
    	return true
    }
    
    // buildDefaultConstraints builds the constraints for a pod using
    // .DefaultConstraints and the selectors from the services, replication
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 10:42:29 UTC 2024
    - 5.6K bytes
    - Viewed (0)
Back to top