Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 19 of 19 for ValidateConfig (0.57 sec)

  1. cmd/kubeadm/app/util/config/common.go

    		}
    		newConfig = append(newConfig, b)
    	}
    
    	return bytes.Join(newConfig, []byte(constants.YAMLDocumentSeparator)), nil
    }
    
    // ValidateConfig takes a byte slice containing a kubeadm configuration and performs conversion
    // to internal types and validation.
    func ValidateConfig(config []byte, allowExperimental bool) error {
    	gvkmap, err := kubeadmutil.SplitYAMLDocuments(config)
    	if err != nil {
    		return err
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 11:04:08 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  2. pkg/webhooks/validation/server/server.go

    		reportValidationFailed(request, reasonCRDConversionError, isDryRun)
    		return toAdmissionResponse(fmt.Errorf("error decoding configuration: %v", err))
    	}
    
    	warnings, err := s.ValidateConfig(*out)
    	if err != nil {
    		if _, f := out.Annotations[constants.AlwaysReject]; !f {
    			// Hide error message if it was intentionally rejected (by our own internal call)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat May 04 06:13:56 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/aot/compile.cc

      tf2xla::Config config;
      if (flags.config.empty()) {
        return errors::InvalidArgument("Must specify --config");
      }
      TF_RETURN_IF_ERROR(ReadProtoFile(flags.config, &config));
      TF_RETURN_IF_ERROR(ValidateConfig(config));
      if (flags.dump_fetch_nodes) {
        std::set<string> nodes;
        for (const tf2xla::Fetch& fetch : config.fetch()) {
          nodes.insert(fetch.id().node_name());
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 08:28:57 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  4. istioctl/pkg/validate/validate.go

    			if defaultNamespace == "" {
    				defaultNamespace = metav1.NamespaceDefault
    			}
    			obj.Namespace = defaultNamespace
    		}
    
    		warnings, err := schema.ValidateConfig(*obj)
    		return warnings, err
    	}
    
    	var errs error
    	if un.IsList() {
    		_ = un.EachListItem(func(item runtime.Object) error {
    			castItem := item.(*unstructured.Unstructured)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jan 22 17:58:52 UTC 2024
    - 15K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/util/config/common_test.go

    			kind: ResetConfiguration
    			`, gvExperimental)),
    			expectedError:     true,
    			allowExperimental: false,
    		},
    	}
    
    	for _, test := range tests {
    		t.Run(test.name, func(t *testing.T) {
    			err := ValidateConfig([]byte(test.cfg), test.allowExperimental)
    			if (err != nil) != test.expectedError {
    				t.Fatalf("expected error: %v, got: %v, error: %v", test.expectedError, (err != nil), err)
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 05:14:21 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/cmd/config.go

    				return errors.Errorf("the --%s flag is mandatory", options.CfgPath)
    			}
    
    			cfgBytes, err := os.ReadFile(cfgPath)
    			if err != nil {
    				return err
    			}
    
    			if err := configutil.ValidateConfig(cfgBytes, allowExperimental); err != nil {
    				return err
    			}
    			fmt.Fprintln(out, "ok")
    
    			return nil
    		},
    		Args: cobra.NoArgs,
    	}
    	options.AddConfigFlag(cmd.Flags(), &cfgPath)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 06:58:01 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  7. operator/pkg/manifest/shared.go

    ) (string, *iopv1alpha1.IstioOperator, error) {
    	iopsString, iops, err := GenIOPFromProfile(profile, fy, setFlags, force, false, client, l)
    	if err != nil {
    		return "", nil, err
    	}
    
    	errs, warning := validation.ValidateConfig(false, iops.Spec)
    	if warning != "" {
    		l.LogAndError(warning)
    	}
    
    	if errs.ToError() != nil {
    		return "", nil, fmt.Errorf("generated config failed semantic validation: %v", errs)
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 03 06:27:07 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/aot/codegen.cc

                          const CompileResult& compile_result,
                          const MetadataResult& metadata_result, string* header) {
      TF_RETURN_IF_ERROR(ValidateConfig(config));
      TF_RETURN_IF_ERROR(ValidateFeedFetchCppNames(config));
      const int64_t result_index = compile_result.aot->result_buffer_index();
      const std::vector<BufferInfo>& buffer_infos =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 01:20:01 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  9. cmd/config-current.go

    	if config.LambdaSubSystems.Contains(subSys) {
    		if err := lambda.TestSubSysLambdaTargets(GlobalContext, s, subSys, NewHTTPTransport()); err != nil {
    			return err
    		}
    	}
    
    	return nil
    }
    
    func validateConfig(ctx context.Context, s config.Config, subSys string) error {
    	objAPI := newObjectLayerFn()
    
    	// We must have a global lock for this so nobody else modifies env while we do.
    	defer env.LockSetEnv()()
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 30 08:14:58 UTC 2024
    - 30.8K bytes
    - Viewed (0)
Back to top