Skip to content

Commit 16cedc7

Browse files
Merge pull request #131088 from atiratree/rename-terminating-replicas-fg
rename DeploymentPodReplacementPolicy FG to DeploymentReplicaSetTerminatingReplicas Kubernetes-commit: d53dc8e1eeaad3d188960a8d6f476d62efef25a5
2 parents dc88679 + 96e38c9 commit 16cedc7

14 files changed

+24
-24
lines changed

apps/v1/generated.proto

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/v1/types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ type DeploymentStatus struct {
512512
// Total number of terminating pods targeted by this deployment. Terminating pods have a non-null
513513
// .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase.
514514
//
515-
// This is an alpha field. Enable DeploymentPodReplacementPolicy to be able to use this field.
515+
// This is an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field.
516516
// +optional
517517
TerminatingReplicas *int32 `json:"terminatingReplicas,omitempty" protobuf:"varint,9,opt,name=terminatingReplicas"`
518518

@@ -900,7 +900,7 @@ type ReplicaSetStatus struct {
900900
// The number of terminating pods for this replica set. Terminating pods have a non-null .metadata.deletionTimestamp
901901
// and have not yet reached the Failed or Succeeded .status.phase.
902902
//
903-
// This is an alpha field. Enable DeploymentPodReplacementPolicy to be able to use this field.
903+
// This is an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field.
904904
// +optional
905905
TerminatingReplicas *int32 `json:"terminatingReplicas,omitempty" protobuf:"varint,7,opt,name=terminatingReplicas"`
906906

apps/v1/types_swagger_doc_generated.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ var map_DeploymentStatus = map[string]string{
182182
"readyReplicas": "Total number of non-terminating pods targeted by this Deployment with a Ready Condition.",
183183
"availableReplicas": "Total number of available non-terminating pods (ready for at least minReadySeconds) targeted by this deployment.",
184184
"unavailableReplicas": "Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created.",
185-
"terminatingReplicas": "Total number of terminating pods targeted by this deployment. Terminating pods have a non-null .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase.\n\nThis is an alpha field. Enable DeploymentPodReplacementPolicy to be able to use this field.",
185+
"terminatingReplicas": "Total number of terminating pods targeted by this deployment. Terminating pods have a non-null .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase.\n\nThis is an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field.",
186186
"conditions": "Represents the latest available observations of a deployment's current state.",
187187
"collisionCount": "Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet.",
188188
}
@@ -253,7 +253,7 @@ var map_ReplicaSetStatus = map[string]string{
253253
"fullyLabeledReplicas": "The number of non-terminating pods that have labels matching the labels of the pod template of the replicaset.",
254254
"readyReplicas": "The number of non-terminating pods targeted by this ReplicaSet with a Ready Condition.",
255255
"availableReplicas": "The number of available non-terminating pods (ready for at least minReadySeconds) for this replica set.",
256-
"terminatingReplicas": "The number of terminating pods for this replica set. Terminating pods have a non-null .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase.\n\nThis is an alpha field. Enable DeploymentPodReplacementPolicy to be able to use this field.",
256+
"terminatingReplicas": "The number of terminating pods for this replica set. Terminating pods have a non-null .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase.\n\nThis is an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field.",
257257
"observedGeneration": "ObservedGeneration reflects the generation of the most recently observed ReplicaSet.",
258258
"conditions": "Represents the latest available observations of a replica set's current state.",
259259
}

apps/v1beta1/generated.proto

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/v1beta1/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ type DeploymentStatus struct {
578578
// Total number of terminating pods targeted by this deployment. Terminating pods have a non-null
579579
// .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase.
580580
//
581-
// This is an alpha field. Enable DeploymentPodReplacementPolicy to be able to use this field.
581+
// This is an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field.
582582
// +optional
583583
TerminatingReplicas *int32 `json:"terminatingReplicas,omitempty" protobuf:"varint,9,opt,name=terminatingReplicas"`
584584

apps/v1beta1/types_swagger_doc_generated.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ var map_DeploymentStatus = map[string]string{
119119
"readyReplicas": "Total number of non-terminating pods targeted by this Deployment with a Ready Condition.",
120120
"availableReplicas": "Total number of available non-terminating pods (ready for at least minReadySeconds) targeted by this deployment.",
121121
"unavailableReplicas": "Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created.",
122-
"terminatingReplicas": "Total number of terminating pods targeted by this deployment. Terminating pods have a non-null .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase.\n\nThis is an alpha field. Enable DeploymentPodReplacementPolicy to be able to use this field.",
122+
"terminatingReplicas": "Total number of terminating pods targeted by this deployment. Terminating pods have a non-null .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase.\n\nThis is an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field.",
123123
"conditions": "Represents the latest available observations of a deployment's current state.",
124124
"collisionCount": "collisionCount is the count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet.",
125125
}

apps/v1beta2/generated.proto

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/v1beta2/types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ type DeploymentStatus struct {
556556
// Total number of terminating pods targeted by this deployment. Terminating pods have a non-null
557557
// .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase.
558558
//
559-
// This is an alpha field. Enable DeploymentPodReplacementPolicy to be able to use this field.
559+
// This is an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field.
560560
// +optional
561561
TerminatingReplicas *int32 `json:"terminatingReplicas,omitempty" protobuf:"varint,9,opt,name=terminatingReplicas"`
562562

@@ -958,7 +958,7 @@ type ReplicaSetStatus struct {
958958
// The number of terminating pods for this replica set. Terminating pods have a non-null .metadata.deletionTimestamp
959959
// and have not yet reached the Failed or Succeeded .status.phase.
960960
//
961-
// This is an alpha field. Enable DeploymentPodReplacementPolicy to be able to use this field.
961+
// This is an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field.
962962
// +optional
963963
TerminatingReplicas *int32 `json:"terminatingReplicas,omitempty" protobuf:"varint,7,opt,name=terminatingReplicas"`
964964

apps/v1beta2/types_swagger_doc_generated.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ var map_DeploymentStatus = map[string]string{
182182
"readyReplicas": "Total number of non-terminating pods targeted by this Deployment with a Ready Condition.",
183183
"availableReplicas": "Total number of available non-terminating pods (ready for at least minReadySeconds) targeted by this deployment.",
184184
"unavailableReplicas": "Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created.",
185-
"terminatingReplicas": "Total number of terminating pods targeted by this deployment. Terminating pods have a non-null .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase.\n\nThis is an alpha field. Enable DeploymentPodReplacementPolicy to be able to use this field.",
185+
"terminatingReplicas": "Total number of terminating pods targeted by this deployment. Terminating pods have a non-null .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase.\n\nThis is an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field.",
186186
"conditions": "Represents the latest available observations of a deployment's current state.",
187187
"collisionCount": "Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet.",
188188
}
@@ -253,7 +253,7 @@ var map_ReplicaSetStatus = map[string]string{
253253
"fullyLabeledReplicas": "The number of non-terminating pods that have labels matching the labels of the pod template of the replicaset.",
254254
"readyReplicas": "The number of non-terminating pods targeted by this ReplicaSet with a Ready Condition.",
255255
"availableReplicas": "The number of available non-terminating pods (ready for at least minReadySeconds) for this replica set.",
256-
"terminatingReplicas": "The number of terminating pods for this replica set. Terminating pods have a non-null .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase.\n\nThis is an alpha field. Enable DeploymentPodReplacementPolicy to be able to use this field.",
256+
"terminatingReplicas": "The number of terminating pods for this replica set. Terminating pods have a non-null .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase.\n\nThis is an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field.",
257257
"observedGeneration": "ObservedGeneration reflects the generation of the most recently observed ReplicaSet.",
258258
"conditions": "Represents the latest available observations of a replica set's current state.",
259259
}

extensions/v1beta1/generated.proto

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extensions/v1beta1/types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ type DeploymentStatus struct {
270270
// Total number of terminating pods targeted by this deployment. Terminating pods have a non-null
271271
// .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase.
272272
//
273-
// This is an alpha field. Enable DeploymentPodReplacementPolicy to be able to use this field.
273+
// This is an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field.
274274
// +optional
275275
TerminatingReplicas *int32 `json:"terminatingReplicas,omitempty" protobuf:"varint,9,opt,name=terminatingReplicas"`
276276

@@ -1002,7 +1002,7 @@ type ReplicaSetStatus struct {
10021002
// The number of terminating pods for this replica set. Terminating pods have a non-null .metadata.deletionTimestamp
10031003
// and have not yet reached the Failed or Succeeded .status.phase.
10041004
//
1005-
// This is an alpha field. Enable DeploymentPodReplacementPolicy to be able to use this field.
1005+
// This is an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field.
10061006
// +optional
10071007
TerminatingReplicas *int32 `json:"terminatingReplicas,omitempty" protobuf:"varint,7,opt,name=terminatingReplicas"`
10081008

extensions/v1beta1/types_swagger_doc_generated.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ var map_DeploymentStatus = map[string]string{
174174
"readyReplicas": "Total number of non-terminating pods targeted by this Deployment with a Ready Condition.",
175175
"availableReplicas": "Total number of available non-terminating pods (ready for at least minReadySeconds) targeted by this deployment.",
176176
"unavailableReplicas": "Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created.",
177-
"terminatingReplicas": "Total number of terminating pods targeted by this deployment. Terminating pods have a non-null .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase.\n\nThis is an alpha field. Enable DeploymentPodReplacementPolicy to be able to use this field.",
177+
"terminatingReplicas": "Total number of terminating pods targeted by this deployment. Terminating pods have a non-null .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase.\n\nThis is an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field.",
178178
"conditions": "Represents the latest available observations of a deployment's current state.",
179179
"collisionCount": "Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet.",
180180
}
@@ -461,7 +461,7 @@ var map_ReplicaSetStatus = map[string]string{
461461
"fullyLabeledReplicas": "The number of non-terminating pods that have labels matching the labels of the pod template of the replicaset.",
462462
"readyReplicas": "The number of non-terminating pods targeted by this ReplicaSet with a Ready Condition.",
463463
"availableReplicas": "The number of available non-terminating pods (ready for at least minReadySeconds) for this replica set.",
464-
"terminatingReplicas": "The number of terminating pods for this replica set. Terminating pods have a non-null .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase.\n\nThis is an alpha field. Enable DeploymentPodReplacementPolicy to be able to use this field.",
464+
"terminatingReplicas": "The number of terminating pods for this replica set. Terminating pods have a non-null .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase.\n\nThis is an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field.",
465465
"observedGeneration": "ObservedGeneration reflects the generation of the most recently observed ReplicaSet.",
466466
"conditions": "Represents the latest available observations of a replica set's current state.",
467467
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ godebug default=go1.24
88

99
require (
1010
github.com/gogo/protobuf v1.3.2
11-
k8s.io/apimachinery v0.0.0-20250401101805-7b4292bd2e85
11+
k8s.io/apimachinery v0.0.0-20250411020758-955939ffb819
1212
)
1313

1414
require (

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc=
8080
gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw=
8181
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
8282
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
83-
k8s.io/apimachinery v0.0.0-20250401101805-7b4292bd2e85 h1:eN9elIIXhVi5aK03Qb89lKWm8zpKmuhNjZLMt7fXZig=
84-
k8s.io/apimachinery v0.0.0-20250401101805-7b4292bd2e85/go.mod h1:BHW0YOu7n22fFv/JkYOEfkUYNRN0fj0BlvMFWA7b+SM=
83+
k8s.io/apimachinery v0.0.0-20250411020758-955939ffb819 h1:m17pTPsx0pRmIhMKKtNBYrT1LitJNib+nLiuIc8Fvk8=
84+
k8s.io/apimachinery v0.0.0-20250411020758-955939ffb819/go.mod h1:BHW0YOu7n22fFv/JkYOEfkUYNRN0fj0BlvMFWA7b+SM=
8585
k8s.io/klog/v2 v2.130.1 h1:n9Xl7H1Xvksem4KFG4PYbdQCQxqc/tTUyrgXaOhHSzk=
8686
k8s.io/klog/v2 v2.130.1/go.mod h1:3Jpz1GvMt720eyJH1ckRHK1EDfpxISzJ7I9OYgaDtPE=
8787
k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 h1:M3sRQVHv7vB20Xc2ybTt7ODCeFj6JSWYFzOFnYeS6Ro=

0 commit comments

Comments
 (0)