Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,061 for claim (0.06 sec)

  1. staging/src/k8s.io/apiserver/pkg/apis/apiserver/validation/validation.go

    		}
    
    		switch {
    		case len(rule.Claim) > 0 && len(rule.Expression) > 0:
    			allErrs = append(allErrs, field.Invalid(fldPath, rule.Claim, "claim and expression can't both be set"))
    		case len(rule.Claim) == 0 && len(rule.Expression) == 0:
    			allErrs = append(allErrs, field.Required(fldPath, "claim or expression is required"))
    		case len(rule.Claim) > 0:
    			if len(rule.Message) > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 31.3K bytes
    - Viewed (0)
  2. plugin/pkg/admission/storage/storageobjectinuseprotection/admission_test.go

    	api "k8s.io/kubernetes/pkg/apis/core"
    	volumeutil "k8s.io/kubernetes/pkg/volume/util"
    )
    
    func TestAdmit(t *testing.T) {
    	claim := &api.PersistentVolumeClaim{
    		TypeMeta: metav1.TypeMeta{
    			Kind: "PersistentVolumeClaim",
    		},
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "claim",
    			Namespace: "ns",
    		},
    	}
    
    	pv := &api.PersistentVolume{
    		TypeMeta: metav1.TypeMeta{
    			Kind: "PersistentVolume",
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 14 00:05:53 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  3. pkg/controller/volume/persistentvolume/index_test.go

    		volList.store.Add(pv)
    	}
    
    	scenarios := map[string]struct {
    		expectedMatch string
    		claim         *v1.PersistentVolumeClaim
    	}{
    		"successful-match-gce-10": {
    			expectedMatch: "gce-pd-10",
    			claim:         makePVC("8G", nil),
    		},
    		"successful-match-nfs-5": {
    			expectedMatch: "nfs-5",
    			claim: makePVC("5G", func(pvc *v1.PersistentVolumeClaim) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 21 13:31:28 UTC 2023
    - 44K bytes
    - Viewed (0)
  4. staging/src/k8s.io/api/resource/v1alpha2/types.go

    	// VendorClassParameters are the per-claim configuration parameters
    	// from the resource class at the time that the claim was allocated.
    	//
    	// +optional
    	VendorClassParameters runtime.RawExtension `json:"vendorClassParameters,omitempty" protobuf:"bytes,1,opt,name=vendorClassParameters"`
    
    	// VendorClaimParameters are the per-claim configuration parameters
    	// from the resource claim parameters at the time that the claim was
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 27 10:22:35 UTC 2024
    - 30K bytes
    - Viewed (0)
  5. pkg/apis/resource/validation/validation_podschedulingcontext_test.go

    						resource.ResourceClaimSchedulingStatus{Name: "my-claim"},
    					)
    				}
    				return schedulingCtx
    			},
    		},
    		"invalid-too-long-claim-status": {
    			wantFailures:  field.ErrorList{field.TooLongMaxLength(field.NewPath("status", "claims").Index(0).Child("unsuitableNodes"), 129, resource.PodSchedulingNodeListMaxSize)},
    			oldScheduling: validScheduling,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 09:18:08 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  6. pkg/scheduler/framework/plugins/dynamicresources/structuredparameters.go

    	objs := claimAssumeCache.List(nil)
    	for _, obj := range objs {
    		claim, ok := obj.(*resourcev1alpha2.ResourceClaim)
    		if !ok {
    			return nil, fmt.Errorf("got unexpected object of type %T from claim assume cache", obj)
    		}
    		if obj, ok := inFlightAllocations.Load(claim.UID); ok {
    			// If the allocation is in-flight, then we have to use the allocation
    			// from that claim.
    			claim = obj.(*resourcev1alpha2.ResourceClaim)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 22 09:03:22 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  7. pkg/controller/volume/persistentvolume/index.go

    	c.modes[i], c.modes[j] = c.modes[j], c.modes[i]
    }
    
    func (c byAccessModes) Len() int {
    	return len(c.modes)
    }
    
    func claimToClaimKey(claim *v1.PersistentVolumeClaim) string {
    	return fmt.Sprintf("%s/%s", claim.Namespace, claim.Name)
    }
    
    func claimrefToClaimKey(claimref *v1.ObjectReference) string {
    	return fmt.Sprintf("%s/%s", claimref.Namespace, claimref.Name)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 6.5K bytes
    - Viewed (0)
  8. pkg/apis/resource/types.go

    type StructuredResourceHandle struct {
    	// VendorClassParameters are the per-claim configuration parameters
    	// from the resource class at the time that the claim was allocated.
    	VendorClassParameters runtime.Object
    
    	// VendorClaimParameters are the per-claim configuration parameters
    	// from the resource claim parameters at the time that the claim was
    	// allocated.
    	VendorClaimParameters runtime.Object
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 14 17:07:36 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  9. pkg/kubelet/cm/dra/claiminfo_test.go

    	className := "test-class"
    	driverName := "test-plugin"
    	claimUID := types.UID("claim-uid")
    	claimName := "test-claim"
    
    	for _, test := range []struct {
    		description    string
    		claim          *resourcev1alpha2.ResourceClaim
    		expectedResult *ClaimInfo
    	}{
    		{
    			description: "successfully created object",
    			claim: &resourcev1alpha2.ResourceClaim{
    				ObjectMeta: metav1.ObjectMeta{
    					UID:       claimUID,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 03 13:30:31 UTC 2024
    - 21K bytes
    - Viewed (0)
  10. internal/config/identity/openid/jwt.go

    	// If claim user info is enabled, get claims from userInfo
    	// and overwrite them with the claims from JWT.
    	if ok && pCfg.ClaimUserinfo {
    		if accessToken == "" {
    			return errors.New("access_token is mandatory if user_info claim is enabled")
    		}
    		uclaims, err := pCfg.UserInfo(ctx, accessToken, r.transport)
    		if err != nil {
    			return err
    		}
    		for k, v := range uclaims {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 30 18:10:41 UTC 2024
    - 8.3K bytes
    - Viewed (0)
Back to top