Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 329 for claim (0.17 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. pkg/registry/resource/resourceclaim/strategy.go

    	claim := obj.(*resource.ResourceClaim)
    	// Status must not be set by user on create.
    	claim.Status = resource.ResourceClaimStatus{}
    }
    
    func (resourceclaimStrategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList {
    	claim := obj.(*resource.ResourceClaim)
    	return validation.ValidateClaim(claim)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 05 20:39:24 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  6. releasenotes/notes/44355.yaml

    apiVersion: release-notes/v2
    kind: feature
    area: traffic-management
    issue:
      - 44228
    releaseNotes:
    - |
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 11 16:38:57 UTC 2023
    - 205 bytes
    - Viewed (0)
  7. pkg/apis/resource/v1alpha2/defaults_test.go

    	_ "k8s.io/kubernetes/pkg/apis/resource/install"
    )
    
    func TestSetDefaultAllocationMode(t *testing.T) {
    	claim := &v1alpha2.ResourceClaim{}
    
    	// field should be defaulted
    	defaultMode := v1alpha2.AllocationModeWaitForFirstConsumer
    	output := roundTrip(t, runtime.Object(claim)).(*v1alpha2.ResourceClaim)
    	outMode := output.Spec.AllocationMode
    	if outMode != defaultMode {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 06:52:03 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  8. plugin/pkg/admission/storage/storageclass/setdefault/admission_test.go

    			claimWithNoClass,
    			false,
    			classWithCreateTime1.Name,
    		},
    	}
    
    	for _, test := range tests {
    		klog.V(4).Infof("starting test %q", test.name)
    
    		// clone the claim, it's going to be modified
    		claim := test.claim.DeepCopy()
    
    		ctrl := newPlugin()
    		informerFactory := informers.NewSharedInformerFactory(nil, controller.NoResyncPeriodFunc())
    		ctrl.SetExternalKubeInformerFactory(informerFactory)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 19 04:00:48 UTC 2022
    - 7.6K bytes
    - Viewed (0)
  9. docs/sts/README.md

    decode the id_token to access the payload of the token that includes following JWT claims, `policy` claim is mandatory and should be present as part of your JWT claim. Without this claim the generated credentials will not have access to any resources on the server, using these credentials application would receive 'Access Denied' errors.
    
    | Claim Name | Type                                              | Claim Value                                                                           ...
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Oct 25 00:44:15 UTC 2022
    - 7.8K bytes
    - Viewed (0)
  10. pkg/apis/resource/install/install_test.go

    	"k8s.io/kubernetes/pkg/api/legacyscheme"
    	internal "k8s.io/kubernetes/pkg/apis/resource"
    )
    
    func TestResourceVersioner(t *testing.T) {
    	claim := internal.ResourceClaim{ObjectMeta: metav1.ObjectMeta{ResourceVersion: "10"}}
    	version, err := meta.NewAccessor().ResourceVersion(&claim)
    	if err != nil {
    		t.Fatalf("unexpected error: %v", err)
    	}
    	if version != "10" {
    		t.Errorf("unexpected version %v", version)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 06:52:03 UTC 2023
    - 2.3K bytes
    - Viewed (0)
Back to top