Show / Hide Table of Contents

Class V1alpha1EvictionStatus

EvictionStatus represents the last observed status of the eviction request.

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

Constructors

V1alpha1EvictionStatus()

Declaration
public V1alpha1EvictionStatus()

V1alpha1EvictionStatus(V1alpha1EvictionStatus)

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

Properties

Conditions

conditions contain information about the eviction request.

Eviction specific conditions are: TargetEvicted or Failed (managed by evictionrequest-controller). - Failed means that the eviction request is no longer being processed by any eviction responder. This can happen if the request is canceled or if no responder managed to evict the target (e.g. terminate or delete a pod).

  • TargetEvicted means that the target has been evicted (e.g. a pod has been terminated or deleted).

The maximum length of the conditions list is 100.

Declaration
[JsonPropertyName("conditions")]
public IList<V1Condition> Conditions { get; set; }
Property Value
Type Description
IList<V1Condition>

EqualityContract

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

ObservedGeneration

observedGeneration is Eviction's .metadata.generation observed by the evictionrequest-controller. The observed generation value cannot be negative and can only be incremented. The minimum value is 1. This field is managed by evictionrequest-controller.

Declaration
[JsonPropertyName("observedGeneration")]
public long? ObservedGeneration { get; set; }
Property Value
Type Description
long?

Requesters

requesters allow you to identify the entities, that requested the eviction of the target. If all the requesters withdraw their eviction intent, the eviction will be canceled.

The maximum length of the requesters list is 100. If this limit is exceeded, requesters with Withdrawn intent should be dropped first.

Declaration
[JsonPropertyName("requesters")]
public IList<V1alpha1Requester> Requesters { get; set; }
Property Value
Type Description
IList<V1alpha1Requester>

Responders

responders represents the eviction process status of each declared responder.

The responder list should be the same length and have the same .name fields as .status.targetResponders. Only responders with .name that have Active state in .targetResponders[].state should be updated and can be mutated. First initialization of the list is allowed.

Each ResponderStatus is initialized by evictionrequest-controller and then managed by the designated responder.

Declaration
[JsonPropertyName("responders")]
public IList<V1alpha1ResponderStatus> Responders { get; set; }
Property Value
Type Description
IList<V1alpha1ResponderStatus>

TargetResponders

targetResponders reference responders that should eventually respond to this eviction to help with the graceful eviction of a target. These responders are selected sequentially, according to their specified priority by setting the Active state to the TargetResponder .state field. The maximum number of active responders allowed is 1. Eventually each responder can end up in an Interrupted, Canceled or, Completed state. Responders should observe these states in order to navigate their lifecycle.

If the target is a pod, the field is populated from Pod's .spec.evictionResponders. Default responders may be added to the list according to the target.

Default responders: - imperative-eviction.k8s.io/evictor responder with a priority of 100 is added to the list if the target is a pod. It will call the imperative Eviction API (pods/<name>/eviction subresource). This call may not succeed due to PodDisruptionBudgets, which may block the pod termination. It will update the responder message and try again with a backoff.

The maximum length of the responders list is 11. The length and keys of the list cannot change once set. This field is managed by evictionrequest-controller.

Declaration
[JsonPropertyName("targetResponders")]
public IList<V1alpha1TargetResponder> TargetResponders { get; set; }
Property Value
Type Description
IList<V1alpha1TargetResponder>

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

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

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

operator !=(V1alpha1EvictionStatus?, V1alpha1EvictionStatus?)

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

Implements

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