Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for errString (0.12 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/config_test.go

    			if len(testCase.expectedErr) > 0 && !strings.Contains(errString(err), testCase.expectedErr) {
    				t.Fatalf("expected error %q, got %q", testCase.expectedErr, errString(err))
    			}
    			if len(testCase.expectedErr) == 0 && err != nil {
    				t.Fatalf("unexpected error %q", errString(err))
    			}
    
    		})
    	}
    	tts := []struct {
    		name            string
    		kmsv2Enabled    bool
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 16:56:39 UTC 2024
    - 72.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/apis/apiserver/validation/validation_test.go

    			got := validateClaimMappings(compiler, state, tt.in, fldPath, tt.structuredAuthnFeatureEnabled).ToAggregate()
    			if d := cmp.Diff(tt.want, errString(got)); d != "" {
    				fmt.Println(errString(got))
    				t.Fatalf("ClaimMappings validation mismatch (-want +got):\n%s", d)
    			}
    			if tt.wantCELMapper {
    				if len(tt.in.Username.Expression) > 0 && state.mapper.Username == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 87.2K bytes
    - Viewed (0)
  3. pkg/apis/admissionregistration/validation/validation.go

    			if seen[v] {
    				allErrors = append(allErrors, field.Invalid(fldPath.Index(i), v, "duplicate version"))
    				continue
    			}
    			seen[v] = true
    			for _, errString := range utilvalidation.IsDNS1035Label(v) {
    				allErrors = append(allErrors, field.Invalid(fldPath.Index(i), v, errString))
    			}
    			if isAcceptedAdmissionReviewVersion(v) {
    				hasAcceptedVersion = true
    			}
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 56.6K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/validation/validation.go

    			if seen[v] {
    				allErrs = append(allErrs, field.Invalid(fldPath.Index(i), v, "duplicate version"))
    				continue
    			}
    			seen[v] = true
    			for _, errString := range utilvalidation.IsDNS1035Label(v) {
    				allErrs = append(allErrs, field.Invalid(fldPath.Index(i), v, errString))
    			}
    			if isAcceptedConversionReviewVersion(v) {
    				hasAcceptedVersion = true
    			}
    		}
    		if requireRecognizedVersion && !hasAcceptedVersion {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 82.6K bytes
    - Viewed (0)
  5. pkg/controller/disruption/disruption_test.go

    	add(t, dc.podStore, pod)
    	dc.sync(ctx, pdbName)
    
    	ps.VerifyDisruptionAllowed(t, pdbName, 0)
    	verifyEventEmitted(t, dc, "CalculateExpectedPodCountFailed")
    }
    
    // Verify that disruption controller is not erroring when unmanaged pods are found
    func TestStatusForUnmanagedPod(t *testing.T) {
    	_, ctx := ktesting.NewTestContext(t)
    	dc, ps := newFakeDisruptionController(ctx)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 50K bytes
    - Viewed (0)
  6. src/cmd/go/internal/modget/get.go

    				// may downgrade this module out of the build list entirely, in which
    				// case the pattern will no longer include it and it won't be an error.
    				//
    				// Either way, punt on the query rather than erroring out just yet.
    				return pathSet{}
    			}
    
    			return r.tryWildcard(ctx, q, m)
    		})
    	}
    
    	// Even if no modules matched, we shouldn't query for a new module to provide
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 18:26:32 UTC 2024
    - 66.5K bytes
    - Viewed (0)
Back to top