Show / Hide Table of Contents

Class V1EvictionResponder

EvictionResponder allows you to specify the responder reacting to an Eviction. Responders should observe and communicate through the Eviction Resource API to help with the graceful eviction of a target (e.g. termination of a pod).

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

Constructors

V1EvictionResponder()

Declaration
public V1EvictionResponder()

V1EvictionResponder(V1EvictionResponder)

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

Properties

EqualityContract

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

Name

name allows you to identify the responder responding to the Eviction.

It must be a valid domain-prefixed key (such as "acme.io/foo"). Domain names *.k8s.io and *.kubernetes.io are reserved. This field must be unique for each responder. This field is required.

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

Priority

priority for this responder. Higher priorities are selected first by the evictionrequest-controller. If there are responders with the same priority, the responder whose domain name comes first in the alphabetical higher domain order, will be picked. This means that the top domain labels are compared alphabetically first, followed by the lower domain labels. The key is compared last.

The responder that is the managing controller of the pod should set the value of this field to 10000 to allow both for preemption or fallback registration by other responders.

The minimum value is 0 and the maximum value is 100000. The interval 0-999 is reserved for responders with *.k8s.io suffix. This field is required.

Declaration
[JsonPropertyName("priority")]
public int Priority { get; set; }
Property Value
Type Description
int

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

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

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

operator !=(V1EvictionResponder?, V1EvictionResponder?)

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

Implements

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