Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for deallocationRequested (0.33 sec)

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

    				claim.Status.Allocation = nil
    				return claim
    			},
    		},
    		"invalid-deallocation-requested-removal": {
    			wantFailures: field.ErrorList{field.Forbidden(field.NewPath("status", "deallocationRequested"), "may not be cleared when `allocation` is set")},
    			oldClaim: func() *resource.ResourceClaim {
    				claim := validAllocatedClaim.DeepCopy()
    				claim.Status.DeallocationRequested = true
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 09:18:10 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  2. pkg/apis/resource/validation/validation.go

    	}
    
    	if !oldClaim.Status.DeallocationRequested &&
    		resourceClaim.Status.DeallocationRequested &&
    		len(resourceClaim.Status.ReservedFor) > 0 {
    		allErrs = append(allErrs, field.Forbidden(fldPath.Child("deallocationRequested"), "deallocation cannot be requested while `reservedFor` is set"))
    	}
    
    	if resourceClaim.Status.Allocation == nil &&
    		resourceClaim.Status.DeallocationRequested {
    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. staging/src/k8s.io/api/testdata/v1.30.0/resource.k8s.io.v1alpha2.ResourceClaim.yaml

            vendorClassParameters:
              apiVersion: example.com/v1
              kind: CustomType
              spec:
                replicas: 1
              status:
                available: 1
        shareable: true
      deallocationRequested: true
      driverName: driverNameValue
      reservedFor:
      - apiGroup: apiGroupValue
        name: nameValue
        resource: resourceValue
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:52:25 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  4. staging/src/k8s.io/api/testdata/v1.30.0/resource.k8s.io.v1alpha2.ResourceClaim.json

        },
        "reservedFor": [
          {
            "apiGroup": "apiGroupValue",
            "resource": "resourceValue",
            "name": "nameValue",
            "uid": "uidValue"
          }
        ],
        "deallocationRequested": true
      }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:52:25 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  5. pkg/scheduler/testing/wrappers.go

    				}},
    			}},
    		}
    	}
    	return wrapper
    }
    
    // DeallocationRequested sets that field of the inner object.
    func (wrapper *ResourceClaimWrapper) DeallocationRequested(deallocationRequested bool) *ResourceClaimWrapper {
    	wrapper.ResourceClaim.Status.DeallocationRequested = deallocationRequested
    	return wrapper
    }
    
    // ReservedFor sets that field of the inner 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)
  6. staging/src/k8s.io/api/resource/v1alpha2/generated.proto

      // DeallocationRequested indicates that a ResourceClaim is to be
      // deallocated.
      //
      // The driver then must deallocate this claim and reset the field
      // together with clearing the Allocation field.
      //
      // While DeallocationRequested is set, no new consumers may be added to
      // ReservedFor.
      // +optional
      optional bool deallocationRequested = 4;
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 22:07:50 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  7. pkg/controller/resourceclaim/controller_test.go

    			claims: []*resourcev1alpha2.ResourceClaim{testClaimReserved},
    			expectedClaims: func() []resourcev1alpha2.ResourceClaim {
    				claim := testClaimAllocated.DeepCopy()
    				claim.Status.DeallocationRequested = true
    				return []resourcev1alpha2.ResourceClaim{*claim}
    			}(),
    			expectedMetrics: expectedMetrics{0, 0},
    		},
    		{
    			name:   "clear-reserved-delayed-allocation-structured",
    			pods:   []*v1.Pod{},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 06 08:56:16 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  8. pkg/scheduler/framework/plugins/dynamicresources/dynamicresources.go

    		return nil, statusError(logger, err)
    	}
    
    	s.informationsForClaim = make([]informationForClaim, len(claims))
    	needResourceInformation := false
    	for index, claim := range claims {
    		if claim.Status.DeallocationRequested {
    			// This will get resolved by the resource driver.
    			return nil, statusUnschedulable(logger, "resourceclaim must be reallocated", "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)
  9. pkg/scheduler/framework/plugins/dynamicresources/dynamicresources_test.go

    				Name(claimName2).
    				Obj()
    	deallocatingClaim = st.FromResourceClaim(pendingImmediateClaim).
    				Allocation("some-driver", &resourcev1alpha2.AllocationResult{}).
    				DeallocationRequested(true).
    				Obj()
    	inUseClaim = st.FromResourceClaim(pendingImmediateClaim).
    			Allocation("some-driver", &resourcev1alpha2.AllocationResult{}).
    			ReservedForPod(podName, types.UID(podUID)).
    			Obj()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 07:57:10 UTC 2024
    - 61.9K bytes
    - Viewed (0)
  10. pkg/controller/resourceclaim/controller.go

    				}
    			} else if claim.Spec.AllocationMode == resourcev1alpha2.AllocationModeWaitForFirstConsumer {
    				// DRA driver controller in the control plane
    				// needs to do the deallocation.
    				claim.Status.DeallocationRequested = true
    			}
    			// In all other cases, we keep the claim allocated, in particular for immediate allocation
    			// with a control plane controller.
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 03:34:25 UTC 2024
    - 37.1K bytes
    - Viewed (0)
Back to top