Skip to content

Commit e2345ac

Browse files
k8s-ci-robotk8s-publishing-bot
authored andcommitted
Promote StatefulSetAutoDeletePVC to stable for 1.32.
Kubernetes-commit: 50362ac7d08e7fa922a75a8b14520839f0fdccdf
1 parent 685b65d commit e2345ac

9 files changed

+14
-20
lines changed

apps/v1/generated.proto

+1-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/v1/types.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ const (
142142
// PersistentVolumeClaims associated with StatefulSet VolumeClaimTemplates
143143
// will not be deleted.
144144
RetainPersistentVolumeClaimRetentionPolicyType PersistentVolumeClaimRetentionPolicyType = "Retain"
145-
// RetentionPersistentVolumeClaimRetentionPolicyType specifies that
145+
// DeletePersistentVolumeClaimRetentionPolicyType specifies that
146146
// PersistentVolumeClaims associated with StatefulSet VolumeClaimTemplates
147147
// will be deleted in the scenario specified in
148148
// StatefulSetPersistentVolumeClaimRetentionPolicy.
@@ -255,8 +255,7 @@ type StatefulSetSpec struct {
255255
// volume claims are created as needed and retained until manually deleted. This
256256
// policy allows the lifecycle to be altered, for example by deleting persistent
257257
// volume claims when their stateful set is deleted, or when their pod is scaled
258-
// down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled,
259-
// which is beta.
258+
// down.
260259
// +optional
261260
PersistentVolumeClaimRetentionPolicy *StatefulSetPersistentVolumeClaimRetentionPolicy `json:"persistentVolumeClaimRetentionPolicy,omitempty" protobuf:"bytes,10,opt,name=persistentVolumeClaimRetentionPolicy"`
262261

apps/v1/types_swagger_doc_generated.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ var map_StatefulSetSpec = map[string]string{
354354
"updateStrategy": "updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template.",
355355
"revisionHistoryLimit": "revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10.",
356356
"minReadySeconds": "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)",
357-
"persistentVolumeClaimRetentionPolicy": "persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is beta.",
357+
"persistentVolumeClaimRetentionPolicy": "persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down.",
358358
"ordinals": "ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a \"0\" index to the first replica and increments the index by one for each additional replica requested.",
359359
}
360360

apps/v1beta1/generated.proto

+1-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/v1beta1/types.go

+3-4
Original file line numberDiff line numberDiff line change
@@ -181,11 +181,11 @@ const (
181181
// PersistentVolumeClaims associated with StatefulSet VolumeClaimTemplates
182182
// will not be deleted.
183183
RetainPersistentVolumeClaimRetentionPolicyType PersistentVolumeClaimRetentionPolicyType = "Retain"
184-
// RetentionPersistentVolumeClaimRetentionPolicyType specifies that
184+
// DeletePersistentVolumeClaimRetentionPolicyType specifies that
185185
// PersistentVolumeClaims associated with StatefulSet VolumeClaimTemplates
186186
// will be deleted in the scenario specified in
187187
// StatefulSetPersistentVolumeClaimRetentionPolicy.
188-
RetentionPersistentVolumeClaimRetentionPolicyType PersistentVolumeClaimRetentionPolicyType = "Delete"
188+
DeletePersistentVolumeClaimRetentionPolicyType PersistentVolumeClaimRetentionPolicyType = "Delete"
189189
)
190190

191191
// StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs
@@ -290,8 +290,7 @@ type StatefulSetSpec struct {
290290
MinReadySeconds int32 `json:"minReadySeconds,omitempty" protobuf:"varint,9,opt,name=minReadySeconds"`
291291

292292
// PersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from
293-
// the StatefulSet VolumeClaimTemplates. This requires the
294-
// StatefulSetAutoDeletePVC feature gate to be enabled.
293+
// the StatefulSet VolumeClaimTemplates.
295294
// +optional
296295
PersistentVolumeClaimRetentionPolicy *StatefulSetPersistentVolumeClaimRetentionPolicy `json:"persistentVolumeClaimRetentionPolicy,omitempty" protobuf:"bytes,10,opt,name=persistentVolumeClaimRetentionPolicy"`
297296

apps/v1beta1/types_swagger_doc_generated.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ var map_StatefulSetSpec = map[string]string{
258258
"updateStrategy": "updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template.",
259259
"revisionHistoryLimit": "revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10.",
260260
"minReadySeconds": "minReadySeconds is the minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)",
261-
"persistentVolumeClaimRetentionPolicy": "PersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates. This requires the StatefulSetAutoDeletePVC feature gate to be enabled.",
261+
"persistentVolumeClaimRetentionPolicy": "PersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates.",
262262
"ordinals": "ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a \"0\" index to the first replica and increments the index by one for each additional replica requested.",
263263
}
264264

apps/v1beta2/generated.proto

+1-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/v1beta2/types.go

+3-4
Original file line numberDiff line numberDiff line change
@@ -191,11 +191,11 @@ const (
191191
// PersistentVolumeClaims associated with StatefulSet VolumeClaimTemplates
192192
// will not be deleted.
193193
RetainPersistentVolumeClaimRetentionPolicyType PersistentVolumeClaimRetentionPolicyType = "Retain"
194-
// RetentionPersistentVolumeClaimRetentionPolicyType specifies that
194+
// DeletePersistentVolumeClaimRetentionPolicyType specifies that
195195
// PersistentVolumeClaims associated with StatefulSet VolumeClaimTemplates
196196
// will be deleted in the scenario specified in
197197
// StatefulSetPersistentVolumeClaimRetentionPolicy.
198-
RetentionPersistentVolumeClaimRetentionPolicyType PersistentVolumeClaimRetentionPolicyType = "Delete"
198+
DeletePersistentVolumeClaimRetentionPolicyType PersistentVolumeClaimRetentionPolicyType = "Delete"
199199
)
200200

201201
// StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs
@@ -300,8 +300,7 @@ type StatefulSetSpec struct {
300300
MinReadySeconds int32 `json:"minReadySeconds,omitempty" protobuf:"varint,9,opt,name=minReadySeconds"`
301301

302302
// PersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from
303-
// the StatefulSet VolumeClaimTemplates. This requires the
304-
// StatefulSetAutoDeletePVC feature gate to be enabled.
303+
// the StatefulSet VolumeClaimTemplates.
305304
// +optional
306305
PersistentVolumeClaimRetentionPolicy *StatefulSetPersistentVolumeClaimRetentionPolicy `json:"persistentVolumeClaimRetentionPolicy,omitempty" protobuf:"bytes,10,opt,name=persistentVolumeClaimRetentionPolicy"`
307306

apps/v1beta2/types_swagger_doc_generated.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ var map_StatefulSetSpec = map[string]string{
382382
"updateStrategy": "updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template.",
383383
"revisionHistoryLimit": "revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10.",
384384
"minReadySeconds": "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)",
385-
"persistentVolumeClaimRetentionPolicy": "PersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates. This requires the StatefulSetAutoDeletePVC feature gate to be enabled.",
385+
"persistentVolumeClaimRetentionPolicy": "PersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates.",
386386
"ordinals": "ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a \"0\" index to the first replica and increments the index by one for each additional replica requested.",
387387
}
388388

0 commit comments

Comments
 (0)