Show / Hide Table of Contents

Class V1beta2DeviceClassSpec

DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.

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

Constructors

V1beta2DeviceClassSpec()

Declaration
public V1beta2DeviceClassSpec()

V1beta2DeviceClassSpec(V1beta2DeviceClassSpec)

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

Properties

Config

Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver.

They are passed to the driver, but are not considered while allocating the claim.

Declaration
[JsonPropertyName("config")]
public IList<V1beta2DeviceClassConfiguration> Config { get; set; }
Property Value
Type Description
IList<V1beta2DeviceClassConfiguration>

EqualityContract

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

ExtendedResourceName

ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked.

This is a beta field.

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

Selectors

Each selector must be satisfied by a device which is claimed via this class.

Declaration
[JsonPropertyName("selectors")]
public IList<V1beta2DeviceSelector> Selectors { get; set; }
Property Value
Type Description
IList<V1beta2DeviceSelector>

Methods

Equals(object?)

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
object.Equals(object)

Equals(V1beta2DeviceClassSpec?)

Declaration
public virtual bool Equals(V1beta2DeviceClassSpec? other)
Parameters
Type Name Description
V1beta2DeviceClassSpec other
Returns
Type Description
bool

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
object.GetHashCode()

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
object.ToString()

Operators

operator ==(V1beta2DeviceClassSpec?, V1beta2DeviceClassSpec?)

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

operator !=(V1beta2DeviceClassSpec?, V1beta2DeviceClassSpec?)

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

Implements

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