Merge pull request #138780 from soltysh/update_sts_docs

Update StatefulSet OnDelete strategy documentation
This commit is contained in:
Kubernetes Prow Robot 2026-05-07 22:37:20 +05:30 committed by GitHub
commit fbac27ccc5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 25 additions and 21 deletions

View file

@ -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"
)

View file

@ -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"},

View file

@ -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"
)

View file

@ -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"
)

View file

@ -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"
)