Show / Hide Table of Contents

Class V1DeviceRequestAllocationResult

DeviceRequestAllocationResult contains the allocation result for one request.

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

Constructors

View Source

V1DeviceRequestAllocationResult()

Declaration
public V1DeviceRequestAllocationResult()
View Source

V1DeviceRequestAllocationResult(V1DeviceRequestAllocationResult)

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

Properties

View Source

AdminAccess

AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode.

This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled.

Declaration
[JsonPropertyName("adminAccess")]
public bool? AdminAccess { get; set; }
Property Value
Type Description
bool?
View Source

BindingConditions

BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation.

This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.

Declaration
[JsonPropertyName("bindingConditions")]
public IList<string> BindingConditions { get; set; }
Property Value
Type Description
IList<string>
View Source

BindingFailureConditions

BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation.

This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.

Declaration
[JsonPropertyName("bindingFailureConditions")]
public IList<string> BindingFailureConditions { get; set; }
Property Value
Type Description
IList<string>
View Source

ConsumedCapacity

ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request. The consumed amount may differ from the requested amount: it is rounded up to the nearest valid value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount).

The total consumed capacity for each device must not exceed the DeviceCapacity's Value.

This field is populated only for devices that allow multiple allocations. All capacity entries are included, even if the consumed amount is zero.

Declaration
[JsonPropertyName("consumedCapacity")]
public IDictionary<string, ResourceQuantity> ConsumedCapacity { get; set; }
Property Value
Type Description
IDictionary<string, ResourceQuantity>
View Source

Device

Device references one device instance via its name in the driver's resource pool. It must be a DNS label.

Declaration
[JsonPropertyName("device")]
public string Device { get; set; }
Property Value
Type Description
string
View Source

Driver

Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node.

Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.

Declaration
[JsonPropertyName("driver")]
public string Driver { get; set; }
Property Value
Type Description
string
View Source

EqualityContract

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

Pool

This name together with the driver name and the device name field identify which device was allocated (<driver name>/<pool name>/<device name>).

Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.

Declaration
[JsonPropertyName("pool")]
public string Pool { get; set; }
Property Value
Type Description
string
View Source

Request

Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format <main request>/<subrequest>.

Multiple devices may have been allocated per request.

Declaration
[JsonPropertyName("request")]
public string Request { get; set; }
Property Value
Type Description
string
View Source

ShareID

ShareID uniquely identifies an individual allocation share of the device, used when the device supports multiple simultaneous allocations. It serves as an additional map key to differentiate concurrent shares of the same device.

Declaration
[JsonPropertyName("shareID")]
public string ShareID { get; set; }
Property Value
Type Description
string
View Source

Tolerations

A copy of all tolerations specified in the request at the time when the device got allocated.

The maximum number of tolerations is 16.

This is an alpha field and requires enabling the DRADeviceTaints feature gate.

Declaration
[JsonPropertyName("tolerations")]
public IList<V1DeviceToleration> Tolerations { get; set; }
Property Value
Type Description
IList<V1DeviceToleration>

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

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

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

operator !=(V1DeviceRequestAllocationResult?, V1DeviceRequestAllocationResult?)

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

Implements

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