Show / Hide Table of Contents

Class V1alpha3DeviceTaint

The device this taint is attached to has the "effect" on any claim which does not tolerate the taint and, through the claim, to pods using the claim.

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

Constructors

V1alpha3DeviceTaint()

Declaration
public V1alpha3DeviceTaint()

V1alpha3DeviceTaint(V1alpha3DeviceTaint)

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

Properties

Effect

The effect of the taint on claims that do not tolerate the taint and through such claims on the pods using them.

Valid effects are None, NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here. More effects may get added in the future. Consumers must treat unknown effects like None.

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

EqualityContract

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

Key

The taint key to be applied to a device. Must be a label name.

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

TimeAdded

TimeAdded represents the time at which the taint was added or (only in a DeviceTaintRule) the effect was modified. Added automatically during create or update if not set.

In addition, in a DeviceTaintRule a value provided during an update gets replaced with the current time if the provided value is the same as the old one and the new effect is different. Changing the key and/or value while keeping the effect unchanged is possible and does not update the time stamp because the eviction which uses it is either already started (NoExecute) or not started yet (NoEffect, NoSchedule).

Declaration
[JsonPropertyName("timeAdded")]
public DateTime? TimeAdded { get; set; }
Property Value
Type Description
DateTime?

Value

The taint value corresponding to the taint key. Must be a label value.

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

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

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

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

operator !=(V1alpha3DeviceTaint?, V1alpha3DeviceTaint?)

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

Implements

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