Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for deallocationRequested (0.49 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. common-protos/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: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  4. staging/src/k8s.io/api/resource/v1alpha2/types.go

    	// 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
    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/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. pkg/apis/resource/types.go

    	ReservedFor []ResourceClaimConsumerReference
    
    	// 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
    	DeallocationRequested bool
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 14 17:07:36 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  7. 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)
  8. staging/src/k8s.io/api/resource/v1alpha2/types_swagger_doc_generated.go

    	"deallocationRequested": "DeallocationRequested indicates that a ResourceClaim is to be deallocated.\n\nThe driver then must deallocate this claim and reset the field together with clearing the Allocation field.\n\nWhile DeallocationRequested is set, no new consumers may be added to ReservedFor.",
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 14 17:07:36 UTC 2024
    - 22.4K bytes
    - Viewed (0)
  9. 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)
  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