Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 36 for derrs (0.33 sec)

  1. pkg/controlplane/apiserver/options/validation_test.go

    			},
    		},
    	}
    
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    			errs := tc.options.Validate()
    			if len(errs) > 0 && !tc.expectErrors {
    				t.Errorf("expected no errors, errors found %+v", errs)
    			}
    
    			if len(errs) == 0 && tc.expectErrors {
    				t.Errorf("expected errors, no errors found")
    			}
    		})
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  2. cmd/import-boss/main_test.go

    		}
    	}
    }
    
    func checkAllErrorStrings(t *testing.T, errs []error, expect []string) {
    	t.Helper()
    	if len(errs) != len(expect) {
    		t.Fatalf("expected %d errors, got %d: %q", len(expect), len(errs), errs)
    	}
    
    	for _, str := range expect {
    		found := false
    		for _, err := range errs {
    			if strings.HasPrefix(err.Error(), str) {
    				found = true
    				break
    			}
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 12:36:49 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/objectmeta/validation_test.go

    			schema := &structuralschema.Structural{Extensions: structuralschema.Extensions{XEmbeddedResource: true}}
    			errs := validateEmbeddedResource(nil, tt.object, schema)
    			seenErrs := make([]bool, len(errs))
    
    			for _, expectedError := range tt.errors {
    				found := false
    				for i, err := range errs {
    					if expectedError.matches(err) && !seenErrs[i] {
    						found = true
    						seenErrs[i] = true
    						break
    					}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/server/options/admission.go

    		return nil
    	}
    
    	errs := []error{}
    
    	registeredPlugins := sets.NewString(a.Plugins.Registered()...)
    	for _, name := range a.EnablePlugins {
    		if !registeredPlugins.Has(name) {
    			errs = append(errs, fmt.Errorf("enable-admission-plugins plugin %q is unknown", name))
    		}
    	}
    
    	for _, name := range a.DisablePlugins {
    		if !registeredPlugins.Has(name) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun May 12 08:49:42 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/util/runtime/runtime.go

    				cancel()
    				continue
    			}
    			cancel()
    
    			lastErr = nil
    			break
    		}
    
    		if lastErr != nil {
    			errs = append(errs, lastErr)
    		}
    	}
    	return errorsutil.NewAggregate(errs)
    }
    
    // PullImage pulls the image
    func (runtime *CRIRuntime) PullImage(image string) (err error) {
    	for i := 0; i < constants.PullImageRetry; i++ {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 06:33:22 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/mod/modfile/work.go

    	if err != nil {
    		return nil, err
    	}
    	f := &WorkFile{
    		Syntax: fs,
    	}
    	var errs ErrorList
    
    	for _, x := range fs.Stmt {
    		switch x := x.(type) {
    		case *Line:
    			f.add(&errs, x, x.Token[0], x.Token[1:], fix)
    
    		case *LineBlock:
    			if len(x.Token) > 1 {
    				errs = append(errs, Error{
    					Filename: file,
    					Pos:      x.Start,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 18:34:56 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  7. cmd/kube-controller-manager/app/options/hpacontroller.go

    func (o *HPAControllerOptions) Validate() []error {
    	if o == nil {
    		return nil
    	}
    
    	errs := []error{}
    	if o.ConcurrentHorizontalPodAutoscalerSyncs < 1 {
    		errs = append(errs, fmt.Errorf("concurrent-horizontal-pod-autoscaler-syncs must be greater than 0, but got %d", o.ConcurrentHorizontalPodAutoscalerSyncs))
    	}
    	return errs
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun May 19 09:49:23 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  8. src/testing/fstest/testfs_test.go

    	}
    
    	// TestFS is expected to return a list of errors.
    	// Enforce that the list can be extracted for browsing.
    	var errs interface{ Unwrap() []error }
    	if !errors.As(err, &errs) {
    		t.Errorf("caller should be able to extract the errors as a list: %#v", err)
    	} else {
    		for _, err := range errs.Unwrap() {
    			// ErrPermission is expected
    			// but any other error must be reported.
    			if !errors.Is(err, fs.ErrPermission) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  9. pkg/registry/storage/csinode/strategy_test.go

    	Strategy.PrepareForCreate(ctx, csiNode)
    
    	errs := Strategy.Validate(ctx, csiNode)
    	if len(errs) != 0 {
    		t.Errorf("unexpected error validating %v", errs)
    	}
    
    	// Update of spec is allowed
    	newCSINode := csiNode.DeepCopy()
    	newCSINode.Spec.Drivers[0].NodeID = "valid-node-2"
    
    	Strategy.PrepareForUpdate(ctx, newCSINode, csiNode)
    
    	errs = Strategy.ValidateUpdate(ctx, newCSINode, csiNode)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 15 09:24:44 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  10. cmd/naughty-disk_test.go

    func (d *naughtyDisk) DeleteVersions(ctx context.Context, volume string, versions []FileInfoVersions, opts DeleteOptions) []error {
    	if err := d.calcError(); err != nil {
    		errs := make([]error, len(versions))
    		for i := range errs {
    			errs[i] = err
    		}
    		return errs
    	}
    	return d.disk.DeleteVersions(ctx, volume, versions, opts)
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 9.4K bytes
    - Viewed (0)
Back to top