mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-05-28 04:04:39 -04:00
Merge pull request #138780 from soltysh/update_sts_docs
Update StatefulSet OnDelete strategy documentation
This commit is contained in:
commit
fbac27ccc5
5 changed files with 25 additions and 21 deletions
|
|
@ -83,11 +83,12 @@ const (
|
|||
// strategy, new Pods will be created from the specification version indicated
|
||||
// by the StatefulSet's updateRevision.
|
||||
RollingUpdateStatefulSetStrategyType StatefulSetUpdateStrategyType = "RollingUpdate"
|
||||
// OnDeleteStatefulSetStrategyType triggers the legacy behavior. Version
|
||||
// tracking and ordered rolling restarts are disabled. Pods are recreated
|
||||
// from the StatefulSetSpec when they are manually deleted. When a scale
|
||||
// operation is performed with this strategy,specification version indicated
|
||||
// by the StatefulSet's currentRevision.
|
||||
// OnDeleteStatefulSetStrategyType disables ordered rolling restarts. Version
|
||||
// tracking is done on a best-effort basis - the controller will try to
|
||||
// eventually converge StatefulSet's currentRevision with updateRevision.
|
||||
// Pods are recreated from the StatefulSetSpec when they are manually deleted.
|
||||
// When a scale operation is performed with this strategy, new Pods will be
|
||||
// created from the specification version indicated by the StatefulSet's updateRevision.
|
||||
OnDeleteStatefulSetStrategyType StatefulSetUpdateStrategyType = "OnDelete"
|
||||
)
|
||||
|
||||
|
|
|
|||
2
pkg/generated/openapi/zz_generated.openapi.go
generated
2
pkg/generated/openapi/zz_generated.openapi.go
generated
|
|
@ -9400,7 +9400,7 @@ func schema_k8sio_api_apps_v1_StatefulSetUpdateStrategy(ref common.ReferenceCall
|
|||
Properties: map[string]spec.Schema{
|
||||
"type": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate.\n\nPossible enum values:\n - `\"OnDelete\"` triggers the legacy behavior. Version tracking and ordered rolling restarts are disabled. Pods are recreated from the StatefulSetSpec when they are manually deleted. When a scale operation is performed with this strategy,specification version indicated by the StatefulSet's currentRevision.\n - `\"RollingUpdate\"` indicates that update will be applied to all Pods in the StatefulSet with respect to the StatefulSet ordering constraints. When a scale operation is performed with this strategy, new Pods will be created from the specification version indicated by the StatefulSet's updateRevision.",
|
||||
Description: "Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate.\n\nPossible enum values:\n - `\"OnDelete\"` disables ordered rolling restarts. Version tracking is done on a best-effort basis - the controller will try to eventually converge StatefulSet's currentRevision with updateRevision. Pods are recreated from the StatefulSetSpec when they are manually deleted. When a scale operation is performed with this strategy, new Pods will be created from the specification version indicated by the StatefulSet's updateRevision.\n - `\"RollingUpdate\"` indicates that update will be applied to all Pods in the StatefulSet with respect to the StatefulSet ordering constraints. When a scale operation is performed with this strategy, new Pods will be created from the specification version indicated by the StatefulSet's updateRevision.",
|
||||
Type: []string{"string"},
|
||||
Format: "",
|
||||
Enum: []interface{}{"OnDelete", "RollingUpdate"},
|
||||
|
|
|
|||
|
|
@ -105,11 +105,12 @@ const (
|
|||
// strategy, new Pods will be created from the specification version indicated
|
||||
// by the StatefulSet's updateRevision.
|
||||
RollingUpdateStatefulSetStrategyType StatefulSetUpdateStrategyType = "RollingUpdate"
|
||||
// OnDeleteStatefulSetStrategyType triggers the legacy behavior. Version
|
||||
// tracking and ordered rolling restarts are disabled. Pods are recreated
|
||||
// from the StatefulSetSpec when they are manually deleted. When a scale
|
||||
// operation is performed with this strategy,specification version indicated
|
||||
// by the StatefulSet's currentRevision.
|
||||
// OnDeleteStatefulSetStrategyType disables ordered rolling restarts. Version
|
||||
// tracking is done on a best-effort basis - the controller will try to
|
||||
// eventually converge StatefulSet's currentRevision with updateRevision.
|
||||
// Pods are recreated from the StatefulSetSpec when they are manually deleted.
|
||||
// When a scale operation is performed with this strategy, new Pods will be
|
||||
// created from the specification version indicated by the StatefulSet's updateRevision.
|
||||
OnDeleteStatefulSetStrategyType StatefulSetUpdateStrategyType = "OnDelete"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -149,11 +149,12 @@ const (
|
|||
// strategy, new Pods will be created from the specification version indicated
|
||||
// by the StatefulSet's updateRevision.
|
||||
RollingUpdateStatefulSetStrategyType StatefulSetUpdateStrategyType = "RollingUpdate"
|
||||
// OnDeleteStatefulSetStrategyType triggers the legacy behavior. Version
|
||||
// tracking and ordered rolling restarts are disabled. Pods are recreated
|
||||
// from the StatefulSetSpec when they are manually deleted. When a scale
|
||||
// operation is performed with this strategy,specification version indicated
|
||||
// by the StatefulSet's currentRevision.
|
||||
// OnDeleteStatefulSetStrategyType disables ordered rolling restarts. Version
|
||||
// tracking is done on a best-effort basis - the controller will try to
|
||||
// eventually converge StatefulSet's currentRevision with updateRevision.
|
||||
// Pods are recreated from the StatefulSetSpec when they are manually deleted.
|
||||
// When a scale operation is performed with this strategy, new Pods will be
|
||||
// created from the specification version indicated by the StatefulSet's updateRevision.
|
||||
OnDeleteStatefulSetStrategyType StatefulSetUpdateStrategyType = "OnDelete"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -158,11 +158,12 @@ const (
|
|||
// strategy, new Pods will be created from the specification version indicated
|
||||
// by the StatefulSet's updateRevision.
|
||||
RollingUpdateStatefulSetStrategyType StatefulSetUpdateStrategyType = "RollingUpdate"
|
||||
// OnDeleteStatefulSetStrategyType triggers the legacy behavior. Version
|
||||
// tracking and ordered rolling restarts are disabled. Pods are recreated
|
||||
// from the StatefulSetSpec when they are manually deleted. When a scale
|
||||
// operation is performed with this strategy,specification version indicated
|
||||
// by the StatefulSet's currentRevision.
|
||||
// OnDeleteStatefulSetStrategyType disables ordered rolling restarts. Version
|
||||
// tracking is done on a best-effort basis - the controller will try to
|
||||
// eventually converge StatefulSet's currentRevision with updateRevision.
|
||||
// Pods are recreated from the StatefulSetSpec when they are manually deleted.
|
||||
// When a scale operation is performed with this strategy, new Pods will be
|
||||
// created from the specification version indicated by the StatefulSet's updateRevision.
|
||||
OnDeleteStatefulSetStrategyType StatefulSetUpdateStrategyType = "OnDelete"
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue