Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 213 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. staging/src/k8s.io/client-go/applyconfigurations/core/v1/resourceclaim.go

    package v1
    
    // ResourceClaimApplyConfiguration represents an declarative configuration of the ResourceClaim type for use
    // with apply.
    type ResourceClaimApplyConfiguration struct {
    	Name *string `json:"name,omitempty"`
    }
    
    // ResourceClaimApplyConfiguration constructs an declarative configuration of the ResourceClaim type for use with
    // apply.
    func ResourceClaim() *ResourceClaimApplyConfiguration {
    	return &ResourceClaimApplyConfiguration{}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 10 19:22:42 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. pkg/registry/resource/resourceclaim/storage/storage.go

    		NewListFunc:               func() runtime.Object { return &resource.ResourceClaimList{} },
    		PredicateFunc:             resourceclaim.Match,
    		DefaultQualifiedResource:  resource.Resource("resourceclaims"),
    		SingularQualifiedResource: resource.Resource("resourceclaim"),
    
    		CreateStrategy:      resourceclaim.Strategy,
    		UpdateStrategy:      resourceclaim.Strategy,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 18 10:11:16 UTC 2022
    - 3.8K bytes
    - Viewed (0)
  6. 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)
  7. pkg/controller/resourceclaim/metrics/metrics.go

    	"k8s.io/component-base/metrics"
    	"k8s.io/component-base/metrics/legacyregistry"
    )
    
    // ResourceClaimSubsystem - subsystem name used for ResourceClaim creation
    const ResourceClaimSubsystem = "resourceclaim_controller"
    
    var (
    	// ResourceClaimCreateAttempts tracks the number of
    	// ResourceClaims().Create calls (both successful and unsuccessful)
    	ResourceClaimCreateAttempts = metrics.NewCounter(
    		&metrics.CounterOpts{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 10 19:23:50 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  8. api/discovery/apis__resource.k8s.io__v1alpha2.json

            "deletecollection",
            "get",
            "list",
            "patch",
            "update",
            "watch"
          ]
        },
        {
          "kind": "ResourceClaim",
          "name": "resourceclaims",
          "namespaced": true,
          "singularName": "resourceclaim",
          "storageVersionHash": "sMQbgChfibk=",
          "verbs": [
            "create",
            "delete",
            "deletecollection",
            "get",
            "list",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  9. 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)
  10. pkg/scheduler/framework/plugins/dynamicresources/dynamicresources.go

    			return nil, statusUnschedulable(logger, "resourceclaim must be reallocated", "pod", klog.KObj(pod), "resourceclaim", klog.KObj(claim))
    		}
    		if claim.Status.Allocation != nil &&
    			!resourceclaim.CanBeReserved(claim) &&
    			!resourceclaim.IsReservedForPod(pod, claim) {
    			// Resource is in use. The pod has to wait.
    			return nil, statusUnschedulable(logger, "resourceclaim in use", "pod", klog.KObj(pod), "resourceclaim", klog.KObj(claim))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 15:22:37 UTC 2024
    - 75.9K bytes
    - Viewed (0)
Back to top