Class V1beta1BasicDevice
BasicDevice defines one device instance.
Implements
Inherited Members
Namespace: k8s.Models
Assembly: KubernetesClient.dll
Syntax
public record V1beta1BasicDevice : IEquatable<V1beta1BasicDevice>
Constructors
V1beta1BasicDevice()
Declaration
public V1beta1BasicDevice()
V1beta1BasicDevice(V1beta1BasicDevice)
Declaration
protected V1beta1BasicDevice(V1beta1BasicDevice original)
Parameters
| Type | Name | Description |
|---|---|---|
| V1beta1BasicDevice | original |
Properties
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? |
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? |
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, V1beta1DeviceAttribute> Attributes { get; set; }
Property Value
| Type | Description |
|---|---|
| IDictionary<string, V1beta1DeviceAttribute> |
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 a beta 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> |
BindingFailureConditions
BindingFailureConditions defines the conditions for binding failure. They may be set in the per-device status conditions. If any is 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 a beta 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> |
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 a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.
Declaration
[JsonPropertyName("bindsToNode")]
public bool? BindsToNode { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
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, V1beta1DeviceCapacity> Capacity { get; set; }
Property Value
| Type | Description |
|---|---|
| IDictionary<string, V1beta1DeviceCapacity> |
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 maximum number of device counter consumptions per device is 2.
Declaration
[JsonPropertyName("consumesCounters")]
public IList<V1beta1DeviceCounterConsumption> ConsumesCounters { get; set; }
Property Value
| Type | Description |
|---|---|
| IList<V1beta1DeviceCounterConsumption> |
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
| Type | Description |
|---|---|
| Type |
NodeAllocatableResourceMappings
NodeAllocatableResourceMappings defines the mapping of node resources that are
managed by the DRA driver exposing this device. This includes resources
currently reported in v1.Node status.allocatable that are not extended
resources (see
https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).
Examples include "cpu", "memory", "ephemeral-storage", and hugepages. In
addition to standard requests made through the Pod spec, these resources can
also be requested through claims and allocated by the DRA driver. For example, a
CPU DRA driver might allocate exclusive CPUs or auxiliary node memory
dependencies of an accelerator device. The keys of this map are the
node-allocatable resource names (e.g., "cpu", "memory"). Extended resource names
are not permitted as keys.
Declaration
[JsonPropertyName("nodeAllocatableResourceMappings")]
public IDictionary<string, V1beta1NodeAllocatableResourceMapping> NodeAllocatableResourceMappings { get; set; }
Property Value
| Type | Description |
|---|---|
| IDictionary<string, V1beta1NodeAllocatableResourceMapping> |
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 |
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 |
Taints
If specified, these are the driver-defined taints.
The maximum number of taints is 16. If taints are set for any device in a ResourceSlice, then the maximum number of allowed devices per ResourceSlice is 64 instead of 128.
This is a beta field and requires enabling the DRADeviceTaints feature gate.
Declaration
[JsonPropertyName("taints")]
public IList<V1beta1DeviceTaint> Taints { get; set; }
Property Value
| Type | Description |
|---|---|
| IList<V1beta1DeviceTaint> |
Methods
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj |
Returns
| Type | Description |
|---|---|
| bool |
Overrides
Equals(V1beta1BasicDevice?)
Declaration
public virtual bool Equals(V1beta1BasicDevice? other)
Parameters
| Type | Name | Description |
|---|---|---|
| V1beta1BasicDevice | other |
Returns
| Type | Description |
|---|---|
| bool |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int |
Overrides
PrintMembers(StringBuilder)
Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
| Type | Name | Description |
|---|---|---|
| StringBuilder | builder |
Returns
| Type | Description |
|---|---|
| bool |
ToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |
Overrides
Operators
operator ==(V1beta1BasicDevice?, V1beta1BasicDevice?)
Declaration
public static bool operator ==(V1beta1BasicDevice? left, V1beta1BasicDevice? right)
Parameters
| Type | Name | Description |
|---|---|---|
| V1beta1BasicDevice | left | |
| V1beta1BasicDevice | right |
Returns
| Type | Description |
|---|---|
| bool |
operator !=(V1beta1BasicDevice?, V1beta1BasicDevice?)
Declaration
public static bool operator !=(V1beta1BasicDevice? left, V1beta1BasicDevice? right)
Parameters
| Type | Name | Description |
|---|---|---|
| V1beta1BasicDevice | left | |
| V1beta1BasicDevice | right |
Returns
| Type | Description |
|---|---|
| bool |