mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Add types to StatefulSetUpdateStrategyType constants
This commit is contained in:
parent
39724859b5
commit
cc255816eb
@ -81,13 +81,13 @@ const (
|
|||||||
// ordering constraints. When a scale operation is performed with this
|
// ordering constraints. When a scale operation is performed with this
|
||||||
// strategy, new Pods will be created from the specification version indicated
|
// strategy, new Pods will be created from the specification version indicated
|
||||||
// by the StatefulSet's updateRevision.
|
// by the StatefulSet's updateRevision.
|
||||||
RollingUpdateStatefulSetStrategyType = "RollingUpdate"
|
RollingUpdateStatefulSetStrategyType StatefulSetUpdateStrategyType = "RollingUpdate"
|
||||||
// OnDeleteStatefulSetStrategyType triggers the legacy behavior. Version
|
// OnDeleteStatefulSetStrategyType triggers the legacy behavior. Version
|
||||||
// tracking and ordered rolling restarts are disabled. Pods are recreated
|
// tracking and ordered rolling restarts are disabled. Pods are recreated
|
||||||
// from the StatefulSetSpec when they are manually deleted. When a scale
|
// from the StatefulSetSpec when they are manually deleted. When a scale
|
||||||
// operation is performed with this strategy,specification version indicated
|
// operation is performed with this strategy,specification version indicated
|
||||||
// by the StatefulSet's currentRevision.
|
// by the StatefulSet's currentRevision.
|
||||||
OnDeleteStatefulSetStrategyType = "OnDelete"
|
OnDeleteStatefulSetStrategyType StatefulSetUpdateStrategyType = "OnDelete"
|
||||||
)
|
)
|
||||||
|
|
||||||
// RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.
|
// RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.
|
||||||
|
@ -95,13 +95,13 @@ const (
|
|||||||
// ordering constraints. When a scale operation is performed with this
|
// ordering constraints. When a scale operation is performed with this
|
||||||
// strategy, new Pods will be created from the specification version indicated
|
// strategy, new Pods will be created from the specification version indicated
|
||||||
// by the StatefulSet's updateRevision.
|
// by the StatefulSet's updateRevision.
|
||||||
RollingUpdateStatefulSetStrategyType = "RollingUpdate"
|
RollingUpdateStatefulSetStrategyType StatefulSetUpdateStrategyType = "RollingUpdate"
|
||||||
// OnDeleteStatefulSetStrategyType triggers the legacy behavior. Version
|
// OnDeleteStatefulSetStrategyType triggers the legacy behavior. Version
|
||||||
// tracking and ordered rolling restarts are disabled. Pods are recreated
|
// tracking and ordered rolling restarts are disabled. Pods are recreated
|
||||||
// from the StatefulSetSpec when they are manually deleted. When a scale
|
// from the StatefulSetSpec when they are manually deleted. When a scale
|
||||||
// operation is performed with this strategy,specification version indicated
|
// operation is performed with this strategy,specification version indicated
|
||||||
// by the StatefulSet's currentRevision.
|
// by the StatefulSet's currentRevision.
|
||||||
OnDeleteStatefulSetStrategyType = "OnDelete"
|
OnDeleteStatefulSetStrategyType StatefulSetUpdateStrategyType = "OnDelete"
|
||||||
)
|
)
|
||||||
|
|
||||||
// RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.
|
// RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.
|
||||||
|
@ -134,13 +134,13 @@ const (
|
|||||||
// ordering constraints. When a scale operation is performed with this
|
// ordering constraints. When a scale operation is performed with this
|
||||||
// strategy, new Pods will be created from the specification version indicated
|
// strategy, new Pods will be created from the specification version indicated
|
||||||
// by the StatefulSet's updateRevision.
|
// by the StatefulSet's updateRevision.
|
||||||
RollingUpdateStatefulSetStrategyType = "RollingUpdate"
|
RollingUpdateStatefulSetStrategyType StatefulSetUpdateStrategyType = "RollingUpdate"
|
||||||
// OnDeleteStatefulSetStrategyType triggers the legacy behavior. Version
|
// OnDeleteStatefulSetStrategyType triggers the legacy behavior. Version
|
||||||
// tracking and ordered rolling restarts are disabled. Pods are recreated
|
// tracking and ordered rolling restarts are disabled. Pods are recreated
|
||||||
// from the StatefulSetSpec when they are manually deleted. When a scale
|
// from the StatefulSetSpec when they are manually deleted. When a scale
|
||||||
// operation is performed with this strategy,specification version indicated
|
// operation is performed with this strategy,specification version indicated
|
||||||
// by the StatefulSet's currentRevision.
|
// by the StatefulSet's currentRevision.
|
||||||
OnDeleteStatefulSetStrategyType = "OnDelete"
|
OnDeleteStatefulSetStrategyType StatefulSetUpdateStrategyType = "OnDelete"
|
||||||
)
|
)
|
||||||
|
|
||||||
// RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.
|
// RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.
|
||||||
|
@ -141,13 +141,13 @@ const (
|
|||||||
// ordering constraints. When a scale operation is performed with this
|
// ordering constraints. When a scale operation is performed with this
|
||||||
// strategy, new Pods will be created from the specification version indicated
|
// strategy, new Pods will be created from the specification version indicated
|
||||||
// by the StatefulSet's updateRevision.
|
// by the StatefulSet's updateRevision.
|
||||||
RollingUpdateStatefulSetStrategyType = "RollingUpdate"
|
RollingUpdateStatefulSetStrategyType StatefulSetUpdateStrategyType = "RollingUpdate"
|
||||||
// OnDeleteStatefulSetStrategyType triggers the legacy behavior. Version
|
// OnDeleteStatefulSetStrategyType triggers the legacy behavior. Version
|
||||||
// tracking and ordered rolling restarts are disabled. Pods are recreated
|
// tracking and ordered rolling restarts are disabled. Pods are recreated
|
||||||
// from the StatefulSetSpec when they are manually deleted. When a scale
|
// from the StatefulSetSpec when they are manually deleted. When a scale
|
||||||
// operation is performed with this strategy,specification version indicated
|
// operation is performed with this strategy,specification version indicated
|
||||||
// by the StatefulSet's currentRevision.
|
// by the StatefulSet's currentRevision.
|
||||||
OnDeleteStatefulSetStrategyType = "OnDelete"
|
OnDeleteStatefulSetStrategyType StatefulSetUpdateStrategyType = "OnDelete"
|
||||||
)
|
)
|
||||||
|
|
||||||
// RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.
|
// RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.
|
||||||
|
Loading…
Reference in New Issue
Block a user