Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for derrs (0.17 sec)

  1. 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)
  2. pkg/apis/apps/validation/validation_test.go

    			}
    			// Run the tests
    			if errs := ValidateDaemonSetUpdate(&errorCase.update, &errorCase.old, corevalidation.PodValidationOptions{}); len(errs) != errorCase.expectedErrNum {
    				t.Errorf("%q expected %d errors, but got %d error: %v", testName, errorCase.expectedErrNum, len(errs), errs)
    			} else {
    				t.Logf("(PASS) %q got errors %v", testName, errs)
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 111.9K bytes
    - Viewed (0)
  3. pkg/apis/batch/validation/validation_test.go

    					},
    				},
    			},
    		},
    	}
    
    	for k, v := range cases {
    		errs := validateCronJobSpec(v.new, v.old, field.NewPath("spec"), corevalidation.PodValidationOptions{})
    		if len(errs) > 0 && !v.expectErr {
    			t.Errorf("unexpected error for %s: %v", k, errs)
    		} else if len(errs) == 0 && v.expectErr {
    			t.Errorf("expected error for %s but got nil", k)
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 20:49:09 UTC 2024
    - 124.3K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go

    				t.Fatal("expected non nil validator")
    			}
    			errs, _ := celValidator.Validate(ctx, field.NewPath("root"), tt.schema, tt.obj, nil, celconfig.RuntimeCELCostBudget)
    
    			for i := range errs {
    				// Ignore unchecked fields for this test
    				errs[i].Detail = ""
    				errs[i].BadValue = nil
    			}
    
    			require.ElementsMatch(t, tt.errors, errs)
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 17:14:10 UTC 2024
    - 159.9K bytes
    - Viewed (0)
  5. pkg/apis/admissionregistration/validation/validation_test.go

    		}, true),
    		expectedError: `webhooks[0].matchConditions: Too many: 65: must have at most 64 items`,
    	}}
    	for _, test := range tests {
    		t.Run(test.name, func(t *testing.T) {
    			errs := ValidateValidatingWebhookConfiguration(test.config)
    			err := errs.ToAggregate()
    			if err != nil {
    				if e, a := test.expectedError, err.Error(); !strings.Contains(a, e) || e == "" {
    					t.Errorf("expected to contain:\n  %s\ngot:\n  %s", e, a)
    				}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 147.1K bytes
    - Viewed (0)
  6. cmd/site-replication.go

    		depIDs = append(depIDs, d)
    	}
    	errs := make([]error, len(c.state.Peers))
    	var wg sync.WaitGroup
    	wg.Add(len(depIDs))
    	for i := range depIDs {
    		go func(i int) {
    			defer wg.Done()
    			if depIDs[i] == globalDeploymentID() {
    				if selfActionFn != nil {
    					errs[i] = selfActionFn()
    				}
    			} else {
    				errs[i] = peerActionFn(depIDs[i], c.state.Peers[depIDs[i]])
    			}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 184.3K bytes
    - Viewed (0)
  7. pkg/registry/batch/job/strategy_test.go

    			errs := Strategy.Validate(ctx, tc.job)
    			if len(errs) != int(tc.wantWarningCount) {
    				t.Errorf("want warnings %d but got %d, errors: %v", tc.wantWarningCount, len(errs), errs)
    			}
    			if diff := cmp.Diff(tc.wantJob, tc.job); diff != "" {
    				t.Errorf("Unexpected job (-want,+got):\n%s", diff)
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 101.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc

          if (meet == result.getType()) continue;
    
          LLVM_DEBUG({
            llvm::errs() << "\tfolding & updating return type ";
            result.getType().print(llvm::errs());
            input.getType().print(llvm::errs() << " to ");
            llvm::errs() << "\n";
          });
    
          // Shape inference should not change the element type.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
  9. cmd/bucket-replication.go

    					},
    				}
    				err = tgt.RemoveObjectTagging(ctx, tgt.Bucket, object, dopts)
    			}
    			if err != nil {
    				errs[idx] = err
    			}
    		}(idx, tgt)
    	}
    	wg.Wait()
    
    	var (
    		terr        error
    		taggedCount int
    	)
    	for _, err := range errs {
    		if err == nil {
    			taggedCount++
    			continue
    		}
    		if err != nil {
    			terr = err
    		}
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 06:56:12 UTC 2024
    - 114.4K bytes
    - Viewed (0)
  10. pkg/kubelet/kubelet.go

    				if nlq, errs := newNodeLogQuery(req.URL.Query()); len(errs) > 0 {
    					http.Error(w, errs.ToAggregate().Error(), http.StatusBadRequest)
    					return
    				} else if nlq != nil {
    					if req.URL.Path != "/" && req.URL.Path != "" {
    						http.Error(w, "path not allowed in query mode", http.StatusNotAcceptable)
    						return
    					}
    					if errs := nlq.validate(); len(errs) > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 126.1K bytes
    - Viewed (0)
Back to top