Class V1beta1ResourceClaimStatus
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1beta1ResourceClaimStatus
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1beta1ResourceClaimStatus
extends Object
ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDevicesItem
(V1beta1AllocatedDeviceStatus devicesItem) Add an item to the devices property in a chainable fashion.addReservedForItem
(V1beta1ResourceClaimConsumerReference reservedForItem) Add an item to the reservedFor property in a chainable fashion.allocation
(V1beta1AllocationResult allocation) Set allocation in a chainable fashion.devices
(List<@Valid V1beta1AllocatedDeviceStatus> devices) Set devices in a chainable fashion.boolean
List<@Valid V1beta1AllocatedDeviceStatus>
Devices contains the status of each device allocated for this claim, as reported by the driver.ReservedFor indicates which entities are currently allowed to use the claim.int
hashCode()
reservedFor
(List<@Valid V1beta1ResourceClaimConsumerReference> reservedFor) Set reservedFor in a chainable fashion.void
setAllocation
(V1beta1AllocationResult allocation) Set the allocation property valuevoid
setDevices
(List<@Valid V1beta1AllocatedDeviceStatus> devices) Set the devices property valuevoid
setReservedFor
(List<@Valid V1beta1ResourceClaimConsumerReference> reservedFor) Set the reservedFor property valuetoString()
-
Field Details
-
JSON_PROPERTY_ALLOCATION
- See Also:
-
JSON_PROPERTY_DEVICES
- See Also:
-
JSON_PROPERTY_RESERVED_FOR
- See Also:
-
-
Constructor Details
-
V1beta1ResourceClaimStatus
public V1beta1ResourceClaimStatus()
-
-
Method Details
-
getAllocation
- Returns:
- the allocation property value
-
setAllocation
Set the allocation property value- Parameters:
allocation
- property value to set
-
allocation
Set allocation in a chainable fashion.- Returns:
- The same instance of V1beta1ResourceClaimStatus for chaining.
-
getDevices
Devices contains the status of each device allocated for this claim, as reported by the driver. This can include driver-specific information. Entries are owned by their respective drivers.- Returns:
- the devices property value
-
setDevices
Set the devices property value- Parameters:
devices
- property value to set
-
devices
Set devices in a chainable fashion.- Returns:
- The same instance of V1beta1ResourceClaimStatus for chaining.
-
addDevicesItem
Add an item to the devices property in a chainable fashion.- Returns:
- The same instance of V1beta1ResourceClaimStatus for chaining.
-
getReservedFor
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. A claim that is in use or might be in use because it has been reserved must not get deallocated. In a cluster with multiple scheduler instances, two pods might get scheduled concurrently by different schedulers. When they reference the same ResourceClaim which already has reached its maximum number of consumers, only one pod can be scheduled. Both schedulers try to add their pod to the claim.status.reservedFor field, but only the update that reaches the API server first gets stored. The other one fails with an error and the scheduler which issued it knows that it must put the pod back into the queue, waiting for the ResourceClaim to become usable again. There can be at most 256 such reservations. This may get increased in the future, but not reduced.- Returns:
- the reservedFor property value
-
setReservedFor
Set the reservedFor property value- Parameters:
reservedFor
- property value to set
-
reservedFor
public V1beta1ResourceClaimStatus reservedFor(List<@Valid V1beta1ResourceClaimConsumerReference> reservedFor) Set reservedFor in a chainable fashion.- Returns:
- The same instance of V1beta1ResourceClaimStatus for chaining.
-
addReservedForItem
public V1beta1ResourceClaimStatus addReservedForItem(V1beta1ResourceClaimConsumerReference reservedForItem) Add an item to the reservedFor property in a chainable fashion.- Returns:
- The same instance of V1beta1ResourceClaimStatus for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-