Show / Hide Table of Contents

Class V1beta1ResourceClaimStatus

ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was.

Inheritance
object
V1beta1ResourceClaimStatus
Implements
IEquatable<V1beta1ResourceClaimStatus>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: k8s.Models
Assembly: KubernetesClient.dll
Syntax
public record V1beta1ResourceClaimStatus : IEquatable<V1beta1ResourceClaimStatus>

Constructors

View Source

V1beta1ResourceClaimStatus()

Declaration
public V1beta1ResourceClaimStatus()
View Source

V1beta1ResourceClaimStatus(V1beta1ResourceClaimStatus)

Declaration
protected V1beta1ResourceClaimStatus(V1beta1ResourceClaimStatus original)
Parameters
Type Name Description
V1beta1ResourceClaimStatus original

Properties

View Source

Allocation

Allocation is set once the claim has been allocated successfully.

Declaration
[JsonPropertyName("allocation")]
public V1beta1AllocationResult Allocation { get; set; }
Property Value
Type Description
V1beta1AllocationResult
View Source

Devices

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.

Declaration
[JsonPropertyName("devices")]
public IList<V1beta1AllocatedDeviceStatus> Devices { get; set; }
Property Value
Type Description
IList<V1beta1AllocatedDeviceStatus>
View Source

EqualityContract

Declaration
protected virtual Type EqualityContract { get; }
Property Value
Type Description
Type
View Source

ReservedFor

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.

Declaration
[JsonPropertyName("reservedFor")]
public IList<V1beta1ResourceClaimConsumerReference> ReservedFor { get; set; }
Property Value
Type Description
IList<V1beta1ResourceClaimConsumerReference>

Methods

View Source

Equals(object?)

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
object.Equals(object)
View Source

Equals(V1beta1ResourceClaimStatus?)

Declaration
public virtual bool Equals(V1beta1ResourceClaimStatus? other)
Parameters
Type Name Description
V1beta1ResourceClaimStatus other
Returns
Type Description
bool
View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
object.GetHashCode()
View Source

PrintMembers(StringBuilder)

Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Type Name Description
StringBuilder builder
Returns
Type Description
bool
View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Operators

View Source

operator ==(V1beta1ResourceClaimStatus?, V1beta1ResourceClaimStatus?)

Declaration
public static bool operator ==(V1beta1ResourceClaimStatus? left, V1beta1ResourceClaimStatus? right)
Parameters
Type Name Description
V1beta1ResourceClaimStatus left
V1beta1ResourceClaimStatus right
Returns
Type Description
bool
View Source

operator !=(V1beta1ResourceClaimStatus?, V1beta1ResourceClaimStatus?)

Declaration
public static bool operator !=(V1beta1ResourceClaimStatus? left, V1beta1ResourceClaimStatus? right)
Parameters
Type Name Description
V1beta1ResourceClaimStatus left
V1beta1ResourceClaimStatus right
Returns
Type Description
bool

Implements

IEquatable<T>
  • View Source
In this article
Back to top Generated by DocFX