Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 481 for derrs (0.19 sec)

  1. pkg/registry/admissionregistration/validatingadmissionpolicybinding/strategy.go

    	errs := validation.ValidateValidatingAdmissionPolicyBinding(obj.(*admissionregistration.ValidatingAdmissionPolicyBinding))
    	if len(errs) == 0 {
    		// if the object is well-formed, also authorize the paramRef
    		if err := v.authorizeCreate(ctx, obj); err != nil {
    			errs = append(errs, field.Forbidden(field.NewPath("spec", "paramRef"), err.Error()))
    		}
    	}
    	return errs
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 07 21:29:56 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  2. pkg/config/validation/virtualservice.go

    	errs = AppendValidation(errs, validateHTTPDirectResponse(http.DirectResponse))
    	errs = AppendValidation(errs, validateHTTPRetry(http.Retries))
    	errs = AppendValidation(errs, validateHTTPRewrite(http.Rewrite))
    	errs = AppendValidation(errs, validateAuthorityRewrite(http.Rewrite, http.Headers))
    	errs = AppendValidation(errs, validateHTTPRouteDestinations(http.Route, gatewaySemantics))
    	if http.Timeout != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:27 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  3. pilot/pkg/model/validation.go

    		}
    		if err := agent.ValidatePort(port.Port); err != nil {
    			errs = multierror.Append(errs,
    				fmt.Errorf("invalid service port value %d for %q: %v", port.Port, port.Name, err))
    		}
    	}
    	return errs
    }
    
    // Validate ensures that the service instance is well-defined
    func (instance *ServiceInstance) Validate() error {
    	var errs error
    	if instance.Service == nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  4. pkg/config/validation/validation.go

    						errs = appendErrors(errs, check(len(src.Namespaces) != 0, "From.Namespaces"))
    						errs = appendErrors(errs, check(len(src.NotNamespaces) != 0, "From.NotNamespaces"))
    						errs = appendErrors(errs, check(len(src.Principals) != 0, "From.Principals"))
    						errs = appendErrors(errs, check(len(src.NotPrincipals) != 0, "From.NotPrincipals"))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:33 UTC 2024
    - 107.2K bytes
    - Viewed (0)
  5. operator/pkg/util/errs_test.go

    	}
    
    	errs = AppendErr(errs, nil)
    	if got, want := errs.String(), ""; got != want {
    		t.Errorf("got: %s, want: %s", got, want)
    	}
    
    	errs = AppendErr(errs, fmt.Errorf("err1"))
    	if got, want := errs.String(), "err1"; got != want {
    		t.Errorf("got: %s, want: %s", got, want)
    	}
    
    	errs = AppendErr(errs, nil)
    	errs = AppendErr(errs, fmt.Errorf("err2"))
    	if got, want := errs.String(), "err1, err2"; got != want {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 29 20:42:01 UTC 2020
    - 3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/util/validation/validation.go

    func IsConfigMapKey(value string) []string {
    	var errs []string
    	if len(value) > DNS1123SubdomainMaxLength {
    		errs = append(errs, MaxLenError(DNS1123SubdomainMaxLength))
    	}
    	if !configMapKeyRegexp.MatchString(value) {
    		errs = append(errs, RegexError(configMapKeyErrMsg, configMapKeyFmt, "key.name", "KEY_NAME", "key-name"))
    	}
    	errs = append(errs, hasChDirPrefix(value)...)
    	return errs
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 16:08:43 UTC 2024
    - 19K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/api/validation/objectmeta_test.go

    		},
    	}
    
    	for k, tc := range testcases {
    		errs := ValidateObjectMetaUpdate(&tc.New, &tc.Old, field.NewPath("field"))
    		if len(errs) != len(tc.ExpectedErrs) {
    			t.Logf("%s: Expected: %#v", k, tc.ExpectedErrs)
    			t.Logf("%s: Got: %#v", k, errs)
    			t.Errorf("%s: expected %d errors, got %d", k, len(tc.ExpectedErrs), len(errs))
    			continue
    		}
    		for i := range errs {
    			if errs[i].Error() != tc.ExpectedErrs[i] {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 07 03:12:31 UTC 2022
    - 17.8K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/validation/validation_test.go

    	}
    	for i := range labelNameErrorCases {
    		errs := ValidateLabels(labelNameErrorCases[i].labels, field.NewPath("field"))
    		if len(errs) != 1 {
    			t.Errorf("case[%d]: expected failure", i)
    		} else {
    			if !strings.Contains(errs[0].Detail, labelNameErrorCases[i].expect) {
    				t.Errorf("case[%d]: error details do not include %q: %q", i, labelNameErrorCases[i].expect, errs[0].Detail)
    			}
    		}
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 02 07:48:42 UTC 2023
    - 15.2K bytes
    - Viewed (0)
  9. pkg/scheduler/apis/config/validation/validation.go

    	var errs []error
    	if len(profile.SchedulerName) == 0 {
    		errs = append(errs, field.Required(path.Child("schedulerName"), ""))
    	}
    	errs = append(errs, validatePercentageOfNodesToScore(path.Child("percentageOfNodesToScore"), profile.PercentageOfNodesToScore))
    	errs = append(errs, validatePluginConfig(path, apiVersion, profile)...)
    	return errs
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 06:27:01 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  10. pkg/controlplane/apiserver/options/validation.go

    // Validate checks Options and return a slice of found errs.
    func (s *Options) Validate() []error {
    	var errs []error
    
    	errs = append(errs, s.Etcd.Validate()...)
    	errs = append(errs, validateAPIPriorityAndFairness(s)...)
    	errs = append(errs, s.SecureServing.Validate()...)
    	errs = append(errs, s.Authentication.Validate()...)
    	errs = append(errs, s.Authorization.Validate()...)
    	errs = append(errs, s.Audit.Validate()...)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 12:46:24 UTC 2023
    - 4.4K bytes
    - Viewed (0)
Back to top