Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for NotSupported (0.14 sec)

  1. pkg/apis/resource/validation/validation_resourceclaimtemplate_test.go

    				template := testClaimTemplate(goodName, goodNS, goodClaimSpec)
    				template.Spec.Spec.ResourceClassName = badName
    				return template
    			}(),
    		},
    		"bad-mode": {
    			wantFailures: field.ErrorList{field.NotSupported(field.NewPath("spec", "spec", "allocationMode"), invalidMode, supportedAllocationModes.List())},
    			template: func() *resource.ResourceClaimTemplate {
    				template := testClaimTemplate(goodName, goodNS, goodClaimSpec)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 09:18:10 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  2. pkg/apis/resource/validation/validation.go

    	}
    	allErrs = append(allErrs, validateResourceClaimParametersRef(spec.ParametersRef, fldPath.Child("parametersRef"))...)
    	if !supportedAllocationModes.Has(string(spec.AllocationMode)) {
    		allErrs = append(allErrs, field.NotSupported(fldPath.Child("allocationMode"), spec.AllocationMode, supportedAllocationModes.List()))
    	}
    	return allErrs
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 09:18:10 UTC 2024
    - 28.3K bytes
    - Viewed (0)
  3. pkg/apis/resource/validation/validation_resourceclaim_test.go

    				claim := testClaim(goodName, goodNS, goodClaimSpec)
    				claim.Spec.ResourceClassName = badName
    				return claim
    			}(),
    		},
    		"bad-mode": {
    			wantFailures: field.ErrorList{field.NotSupported(field.NewPath("spec", "allocationMode"), invalidMode, supportedAllocationModes.List())},
    			claim: func() *resource.ResourceClaim {
    				claim := testClaim(goodName, goodNS, goodClaimSpec)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 09:18:10 UTC 2024
    - 28.7K bytes
    - Viewed (0)
Back to top