Show / Hide Table of Contents

Class V1RollingUpdateStatefulSetStrategy

RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.

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

Constructors

View Source

V1RollingUpdateStatefulSetStrategy()

Declaration
public V1RollingUpdateStatefulSetStrategy()
View Source

V1RollingUpdateStatefulSetStrategy(V1RollingUpdateStatefulSetStrategy)

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

Properties

View Source

EqualityContract

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

MaxUnavailable

The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding up. This can not be 0. Defaults to 1. This field is alpha-level and is only honored by servers that enable the MaxUnavailableStatefulSet feature. The field applies to all pods in the range 0 to Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it will be counted towards MaxUnavailable.

Declaration
[JsonPropertyName("maxUnavailable")]
public IntOrString MaxUnavailable { get; set; }
Property Value
Type Description
IntOrString
View Source

Partition

Partition indicates the ordinal at which the StatefulSet should be partitioned for updates. During a rolling update, all pods from ordinal Replicas-1 to Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched. This is helpful in being able to do a canary based deployment. The default value is 0.

Declaration
[JsonPropertyName("partition")]
public int? Partition { get; set; }
Property Value
Type Description
int?

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

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

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

operator !=(V1RollingUpdateStatefulSetStrategy?, V1RollingUpdateStatefulSetStrategy?)

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

Implements

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