Class V1ResourceStatus
ResourceStatus represents the status of a single resource allocated to a Pod.
Inheritance
V1ResourceStatus
Assembly: KubernetesClient.dll
Syntax
public record V1ResourceStatus : IEquatable<V1ResourceStatus>
Constructors
View Source
V1ResourceStatus()
Declaration
public V1ResourceStatus()
View Source
V1ResourceStatus(V1ResourceStatus)
Declaration
protected V1ResourceStatus(V1ResourceStatus original)
Parameters
Properties
View Source
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
View Source
Name
Name of the resource. Must be unique within the pod and in case of non-DRA
resource, match one of the resources from the pod spec. For DRA resources, the
value must be "claim:<claim_name>/<request> ". When this status is reported about
a container, the "claim_name" and "request" must match one of the claims of this
container.
Declaration
[JsonPropertyName("name")]
public string Name { get; set; }
Property Value
View Source
Resources
List of unique resources health. Each element in the list contains an unique
resource ID and its health. At a minimum, for the lifetime of a Pod, resource ID
must uniquely identify the resource allocated to the Pod on the Node. If other
Pod on the same Node reports the status with the same resource ID, it must be
the same resource they share. See ResourceID type definition for a specific
format it has in various use cases.
Declaration
[JsonPropertyName("resources")]
public IList<V1ResourceHealth> Resources { get; set; }
Property Value
Methods
View Source
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
View Source
Equals(V1ResourceStatus?)
Declaration
public virtual bool Equals(V1ResourceStatus? other)
Parameters
Returns
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
View Source
PrintMembers(StringBuilder)
Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Returns
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
View Source
operator ==(V1ResourceStatus?, V1ResourceStatus?)
Declaration
public static bool operator ==(V1ResourceStatus? left, V1ResourceStatus? right)
Parameters
Returns
View Source
operator !=(V1ResourceStatus?, V1ResourceStatus?)
Declaration
public static bool operator !=(V1ResourceStatus? left, V1ResourceStatus? right)
Parameters
Returns
Implements