Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for ValidateConfig (0.4 sec)

  1. cmd/admin-handlers-config-kv.go

    		return
    	}
    
    	if err = cfg.DelFrom(bytes.NewReader(kvBytes)); err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    
    	if err = validateConfig(ctx, cfg, subSys); err != nil {
    		writeCustomErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrAdminConfigBadJSON), err.Error(), r.URL)
    		return
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  2. operator/pkg/apis/istio/v1alpha1/validation/validation.go

    type deprecatedSettings struct {
    	old string
    	new string
    	// In ordered to distinguish between unset for non-pointer values, we need to specify the default value
    	def any
    }
    
    // ValidateConfig  calls validation func for every defined element in Values
    func ValidateConfig(failOnMissingValidation bool, iopls *v1alpha1.IstioOperatorSpec) (util.Errors, string) {
    	var validationErrors util.Errors
    	var warningMessages []string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 20:02:28 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  3. cmd/admin-handlers-idp-config.go

    		return
    	}
    
    	// IDP config is not dynamic. Sanity check.
    	if dynamic {
    		writeCustomErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrInternalError), "", r.URL)
    		return
    	}
    
    	if err = validateConfig(ctx, cfg, subSys); err != nil {
    
    		var validationErr ldap.Validation
    		if errors.As(err, &validationErr) {
    			// If we got an LDAP validation error, we need to send appropriate
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top