Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for validateNode (1.42 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/registry/core/node/strategy.go

    		return true
    	}
    	return false
    }
    
    // Validate validates a new node.
    func (nodeStrategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList {
    	node := obj.(*api.Node)
    	return validation.ValidateNode(node)
    }
    
    // WarningsOnCreate returns warnings for the creation of the given object.
    func (nodeStrategy) WarningsOnCreate(ctx context.Context, obj runtime.Object) []string {
    	return fieldIsDeprecatedWarnings(obj)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 13 23:06:39 UTC 2024
    - 9K bytes
    - Viewed (0)
  3. tensorflow/cc/saved_model/loader.cc

      for (const auto& node : graph_def.node()) {
        TF_RETURN_IF_ERROR(ValidateNode(node));
      }
    
      if (graph_def.has_library()) {
        const FunctionDefLibrary& library = graph_def.library();
        for (const auto& function : library.function()) {
          for (const auto& node : function.node_def()) {
            TF_RETURN_IF_ERROR(ValidateNode(node));
          }
    
          // Also check that there is no recursivity in the library
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 02 04:36:00 UTC 2024
    - 23K bytes
    - Viewed (0)
  4. 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)
  5. 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