Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 87 for resource_claim (0.26 sec)

  1. pkg/controller/resourceclaim/controller.go

    	"k8s.io/client-go/util/workqueue"
    	"k8s.io/dynamic-resource-allocation/resourceclaim"
    	"k8s.io/klog/v2"
    	podutil "k8s.io/kubernetes/pkg/api/v1/pod"
    	"k8s.io/kubernetes/pkg/controller/resourceclaim/metrics"
    	"k8s.io/utils/ptr"
    )
    
    const (
    	// podResourceClaimIndex is the lookup name for the index function which indexes by pod ResourceClaim templates.
    	podResourceClaimIndex = "pod-resource-claim-index"
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 03:34:25 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  2. pkg/controller/resourceclaim/controller_test.go

    			}(),
    			key: claimKey(testClaimReserved),
    			claims: func() []*resourcev1alpha2.ResourceClaim {
    				claims := []*resourcev1alpha2.ResourceClaim{testClaimReserved.DeepCopy()}
    				claims[0].OwnerReferences = nil
    				return claims
    			}(),
    			expectedClaims: func() []resourcev1alpha2.ResourceClaim {
    				claims := []resourcev1alpha2.ResourceClaim{*testClaimAllocated.DeepCopy()}
    				claims[0].OwnerReferences = nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 06 08:56:16 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/dra/manager_test.go

    				kubeClient: fakeKubeClient,
    				cache:      cache,
    			}
    
    			if test.resourceClaim != nil {
    				if _, err := fakeKubeClient.ResourceV1alpha2().ResourceClaims(test.pod.Namespace).Create(context.Background(), test.resourceClaim, metav1.CreateOptions{}); err != nil {
    					t.Fatalf("failed to create ResourceClaim %s: %+v", test.resourceClaim.Name, err)
    				}
    			}
    
    			var pluginClientTimeout *time.Duration
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 03 13:30:29 UTC 2024
    - 42K bytes
    - Viewed (0)
  4. pkg/kubelet/cm/dra/manager.go

    		resourceClaim, err := m.kubeClient.ResourceV1alpha2().ResourceClaims(pod.Namespace).Get(
    			context.TODO(),
    			*claimName,
    			metav1.GetOptions{})
    		if err != nil {
    			return fmt.Errorf("failed to fetch ResourceClaim %s referenced by pod %s: %+v", *claimName, pod.Name, err)
    		}
    
    		if mustCheckOwner {
    			if err = resourceclaim.IsForPod(pod, resourceClaim); err != nil {
    				return err
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 03 13:23:29 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  5. common-protos/k8s.io/api/resource/v1alpha2/generated.proto

    message PodSchedulingContextStatus {
      // ResourceClaims describes resource availability for each
      // pod.spec.resourceClaim entry where the corresponding ResourceClaim
      // uses "WaitForFirstConsumer" allocation mode.
      //
      // +listType=map
      // +listMapKey=name
      // +optional
      repeated ResourceClaimSchedulingStatus resourceClaims = 1;
    }
    
    // ResourceClaim describes which resources are needed by a resource consumer.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  6. staging/src/k8s.io/api/resource/v1alpha2/types_swagger_doc_generated.go

    	"metadata": "ObjectMeta may contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation.",
    	"spec":     "Spec for the ResourceClaim. The entire content is copied unchanged into the ResourceClaim that gets created from this template. The same fields as in a ResourceClaim are also valid here.",
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 14 17:07:36 UTC 2024
    - 22.4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/resource/v1alpha2/types.go

    type PodSchedulingContextStatus struct {
    	// ResourceClaims describes resource availability for each
    	// pod.spec.resourceClaim entry where the corresponding ResourceClaim
    	// uses "WaitForFirstConsumer" allocation mode.
    	//
    	// +listType=map
    	// +listMapKey=name
    	// +optional
    	ResourceClaims []ResourceClaimSchedulingStatus `json:"resourceClaims,omitempty" protobuf:"bytes,1,opt,name=resourceClaims"`
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 27 10:22:35 UTC 2024
    - 30K bytes
    - Viewed (0)
  8. pkg/apis/resource/types.go

    type PodSchedulingContextStatus struct {
    	// ResourceClaims describes resource availability for each
    	// pod.spec.resourceClaim entry where the corresponding ResourceClaim
    	// uses "WaitForFirstConsumer" allocation mode.
    	// +optional
    	ResourceClaims []ResourceClaimSchedulingStatus
    
    	// If there ever is a need to support other kinds of resources
    	// than ResourceClaim, then new fields could get added here
    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. staging/src/k8s.io/api/resource/v1alpha2/generated.proto

    message PodSchedulingContextStatus {
      // ResourceClaims describes resource availability for each
      // pod.spec.resourceClaim entry where the corresponding ResourceClaim
      // uses "WaitForFirstConsumer" allocation mode.
      //
      // +listType=map
      // +listMapKey=name
      // +optional
      repeated ResourceClaimSchedulingStatus resourceClaims = 1;
    }
    
    // ResourceClaim describes which resources are needed by a resource consumer.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 22:07:50 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  10. pkg/scheduler/testing/wrappers.go

    	return p
    }
    
    // ResourceClaimWrapper wraps a ResourceClaim inside.
    type ResourceClaimWrapper struct{ resourcev1alpha2.ResourceClaim }
    
    // MakeResourceClaim creates a ResourceClaim wrapper.
    func MakeResourceClaim() *ResourceClaimWrapper {
    	return &ResourceClaimWrapper{resourcev1alpha2.ResourceClaim{}}
    }
    
    // FromResourceClaim creates a ResourceClaim wrapper from some existing object.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 07:57:10 UTC 2024
    - 42.1K bytes
    - Viewed (0)
Back to top