Show / Hide Table of Contents

Class V1beta2DeviceRequest

DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices. With FirstAvailable it is also possible to provide a prioritized list of requests.

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

Constructors

View Source

V1beta2DeviceRequest()

Declaration
public V1beta2DeviceRequest()
View Source

V1beta2DeviceRequest(V1beta2DeviceRequest)

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

Properties

View Source

EqualityContract

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

Exactly

Exactly specifies the details for a single request that must be met exactly for the request to be satisfied.

One of Exactly or FirstAvailable must be set.

Declaration
[JsonPropertyName("exactly")]
public V1beta2ExactDeviceRequest Exactly { get; set; }
Property Value
Type Description
V1beta2ExactDeviceRequest
View Source

FirstAvailable

FirstAvailable contains subrequests, of which exactly one will be selected by the scheduler. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one can not be used.

DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later.

Declaration
[JsonPropertyName("firstAvailable")]
public IList<V1beta2DeviceSubRequest> FirstAvailable { get; set; }
Property Value
Type Description
IList<V1beta2DeviceSubRequest>
View Source

Name

Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim.

References using the name in the DeviceRequest will uniquely identify a request when the Exactly field is set. When the FirstAvailable field is set, a reference to the name of the DeviceRequest will match whatever subrequest is chosen by the scheduler.

Must be a DNS label.

Declaration
[JsonPropertyName("name")]
public string Name { get; set; }
Property Value
Type Description
string

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(V1beta2DeviceRequest?)

Declaration
public virtual bool Equals(V1beta2DeviceRequest? other)
Parameters
Type Name Description
V1beta2DeviceRequest 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 ==(V1beta2DeviceRequest?, V1beta2DeviceRequest?)

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

operator !=(V1beta2DeviceRequest?, V1beta2DeviceRequest?)

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

Implements

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