Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for validateNode (0.49 sec)

  1. subprojects/core/src/main/java/org/gradle/execution/plan/DefaultNodeValidator.java

            WorkValidationContext validationContext = validateNode(node);
            List<? extends Problem> problems = validationContext.getProblems();
            logWarnings(problems);
            reportErrors(problems, node.getTask(), validationContext);
            return !problems.isEmpty();
        }
    
        private WorkValidationContext validateNode(LocalTaskNode node) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat May 04 07:42:50 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  2. pkg/apis/core/validation/validation.go

    	if annotations[core.PreferAvoidPodsAnnotationKey] != "" {
    		allErrs = append(allErrs, ValidateAvoidPodsInNodeAnnotations(annotations, fldPath)...)
    	}
    	return allErrs
    }
    
    // ValidateNode tests if required fields in the node are set.
    func ValidateNode(node *core.Node) field.ErrorList {
    	fldPath := field.NewPath("metadata")
    	allErrs := ValidateObjectMeta(&node.ObjectMeta, false, ValidateNodeName, fldPath)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 349.5K bytes
    - Viewed (0)
  3. pkg/apis/core/validation/validation_test.go

    			},
    		},
    		Spec: core.NodeSpec{
    			PodCIDRs: []string{"192.168.0.0/16"},
    		},
    	},
    	}
    	for _, successCase := range successCases {
    		if errs := ValidateNode(&successCase); len(errs) != 0 {
    			t.Errorf("expected success: %v", errs)
    		}
    	}
    
    	errorCases := map[string]core.Node{
    		"zero-length Name": {
    			ObjectMeta: metav1.ObjectMeta{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 857.7K bytes
    - Viewed (0)
Back to top