Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for deallocationRequested (0.45 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. 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)
Back to top