Show / Hide Table of Contents

Class V1alpha3DeviceTaintSelector

DeviceTaintSelector defines which device(s) a DeviceTaintRule applies to. The empty selector matches all devices. Without a selector, no devices are matched.

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

Constructors

View Source

V1alpha3DeviceTaintSelector()

Declaration
public V1alpha3DeviceTaintSelector()
View Source

V1alpha3DeviceTaintSelector(V1alpha3DeviceTaintSelector)

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

Properties

View Source

Device

If device is set, only devices with that name are selected. This field corresponds to slice.spec.devices[].name.

Setting also driver and pool may be required to avoid ambiguity, but is not required.

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

DeviceClassName

If DeviceClassName is set, the selectors defined there must be satisfied by a device to be selected. This field corresponds to class.metadata.name.

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

Driver

If driver is set, only devices from that driver are selected. This fields corresponds to slice.spec.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

If pool is set, only devices in that pool are selected.

Also setting the driver name may be useful to avoid ambiguity when different drivers use the same pool name, but this is not required because selecting pools from different drivers may also be useful, for example when drivers with node-local devices use the node name as their pool name.

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

Selectors

Selectors contains the same selection criteria as a ResourceClaim. Currently, CEL expressions are supported. All of these selectors must be satisfied.

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

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

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

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

operator !=(V1alpha3DeviceTaintSelector?, V1alpha3DeviceTaintSelector?)

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

Implements

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