Show / Hide Table of Contents

Class V1beta2Device

Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.

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

Constructors

View Source

V1beta2Device()

Declaration
public V1beta2Device()
View Source

V1beta2Device(V1beta2Device)

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

Properties

View Source

AllNodes

AllNodes indicates that all nodes have access to the device.

Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.

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

AllowMultipleAllocations

AllowMultipleAllocations marks whether the device is allowed to be allocated to multiple DeviceRequests.

If AllowMultipleAllocations is set to true, the device can be allocated more than once, and all of its capacity is consumable, regardless of whether the requestPolicy is defined or not.

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

Attributes

Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.

The maximum number of attributes and capacities combined is 32.

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

BindingConditions

BindingConditions defines the conditions for proceeding with binding. All of these conditions must be set in the per-device status conditions with a value of True to proceed with binding the pod to the node while scheduling the pod.

The maximum number of binding conditions is 4.

The conditions must be a valid condition type string.

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 defines the conditions for binding failure. They may be set in the per-device status conditions. If any is set to "True", a binding failure occurred.

The maximum number of binding failure conditions is 4.

The conditions must be a valid condition type string.

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

BindsToNode

BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made.

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

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

Capacity

Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.

The maximum number of attributes and capacities combined is 32.

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

ConsumesCounters

ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets.

There can only be a single entry per counterSet.

The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each).

Declaration
[JsonPropertyName("consumesCounters")]
public IList<V1beta2DeviceCounterConsumption> ConsumesCounters { get; set; }
Property Value
Type Description
IList<V1beta2DeviceCounterConsumption>
View Source

EqualityContract

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

Name

Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.

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

NodeName

NodeName identifies the node where the device is available.

Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.

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

NodeSelector

NodeSelector defines the nodes where the device is available.

Must use exactly one term.

Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.

Declaration
[JsonPropertyName("nodeSelector")]
public V1NodeSelector NodeSelector { get; set; }
Property Value
Type Description
V1NodeSelector
View Source

Taints

If specified, these are the driver-defined taints.

The maximum number of taints is 4.

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

Declaration
[JsonPropertyName("taints")]
public IList<V1beta2DeviceTaint> Taints { get; set; }
Property Value
Type Description
IList<V1beta2DeviceTaint>

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

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

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

operator !=(V1beta2Device?, V1beta2Device?)

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

Implements

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