ResourceClaimStatus

data class ResourceClaimStatus(val allocation: AllocationResult? = null, val deallocationRequested: Boolean? = null, val driverName: String? = null, val reservedFor: List<ResourceClaimConsumerReference>? = null)

ResourceClaimStatus tracks whether the resource has been allocated and what the resulting attributes are.

Constructors

Link copied to clipboard
constructor(allocation: AllocationResult? = null, deallocationRequested: Boolean? = null, driverName: String? = null, reservedFor: List<ResourceClaimConsumerReference>? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Allocation is set by the resource driver once a resource has been allocated successfully. If this is not specified, the resource is not yet allocated.

Link copied to clipboard

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.

Link copied to clipboard
val driverName: String? = null

DriverName is a copy of the driver name from the ResourceClass at the time when allocation started.

Link copied to clipboard

ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started. There can be at most 32 such reservations. This may get increased in the future, but not reduced.