@@ -530,19 +530,19 @@ type DeploymentStatus struct {
530
530
// +optional
531
531
ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,1,opt,name=observedGeneration"`
532
532
533
- // Total number of non-terminated pods targeted by this deployment (their labels match the selector).
533
+ // Total number of non-terminating pods targeted by this deployment (their labels match the selector).
534
534
// +optional
535
535
Replicas int32 `json:"replicas,omitempty" protobuf:"varint,2,opt,name=replicas"`
536
536
537
- // Total number of non-terminated pods targeted by this deployment that have the desired template spec.
537
+ // Total number of non-terminating pods targeted by this deployment that have the desired template spec.
538
538
// +optional
539
539
UpdatedReplicas int32 `json:"updatedReplicas,omitempty" protobuf:"varint,3,opt,name=updatedReplicas"`
540
540
541
- // readyReplicas is the number of pods targeted by this Deployment controller with a Ready Condition.
541
+ // Total number of non-terminating pods targeted by this Deployment with a Ready Condition.
542
542
// +optional
543
543
ReadyReplicas int32 `json:"readyReplicas,omitempty" protobuf:"varint,7,opt,name=readyReplicas"`
544
544
545
- // Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.
545
+ // Total number of available non-terminating pods (ready for at least minReadySeconds) targeted by this deployment.
546
546
// +optional
547
547
AvailableReplicas int32 `json:"availableReplicas,omitempty" protobuf:"varint,4,opt,name=availableReplicas"`
548
548
@@ -552,6 +552,13 @@ type DeploymentStatus struct {
552
552
// +optional
553
553
UnavailableReplicas int32 `json:"unavailableReplicas,omitempty" protobuf:"varint,5,opt,name=unavailableReplicas"`
554
554
555
+ // Total number of terminating pods targeted by this deployment. Terminating pods have a non-null
556
+ // .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase.
557
+ //
558
+ // This is an alpha field. Enable DeploymentPodReplacementPolicy to be able to use this field.
559
+ // +optional
560
+ TerminatingReplicas * int32 `json:"terminatingReplicas,omitempty" protobuf:"varint,9,opt,name=terminatingReplicas"`
561
+
555
562
// Represents the latest available observations of a deployment's current state.
556
563
// +patchMergeKey=type
557
564
// +patchStrategy=merge
@@ -897,16 +904,16 @@ type ReplicaSetList struct {
897
904
metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
898
905
899
906
// List of ReplicaSets.
900
- // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller
907
+ // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset
901
908
Items []ReplicaSet `json:"items" protobuf:"bytes,2,rep,name=items"`
902
909
}
903
910
904
911
// ReplicaSetSpec is the specification of a ReplicaSet.
905
912
type ReplicaSetSpec struct {
906
- // Replicas is the number of desired replicas .
913
+ // Replicas is the number of desired pods .
907
914
// This is a pointer to distinguish between explicit zero and unspecified.
908
915
// Defaults to 1.
909
- // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller
916
+ // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset
910
917
// +optional
911
918
Replicas * int32 `json:"replicas,omitempty" protobuf:"varint,1,opt,name=replicas"`
912
919
@@ -924,29 +931,36 @@ type ReplicaSetSpec struct {
924
931
925
932
// Template is the object that describes the pod that will be created if
926
933
// insufficient replicas are detected.
927
- // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller #pod-template
934
+ // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/ #pod-template
928
935
// +optional
929
936
Template v1.PodTemplateSpec `json:"template,omitempty" protobuf:"bytes,3,opt,name=template"`
930
937
}
931
938
932
939
// ReplicaSetStatus represents the current status of a ReplicaSet.
933
940
type ReplicaSetStatus struct {
934
- // Replicas is the most recently observed number of replicas .
935
- // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller
941
+ // Replicas is the most recently observed number of non-terminating pods .
942
+ // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset
936
943
Replicas int32 `json:"replicas" protobuf:"varint,1,opt,name=replicas"`
937
944
938
- // The number of pods that have labels matching the labels of the pod template of the replicaset.
945
+ // The number of non-terminating pods that have labels matching the labels of the pod template of the replicaset.
939
946
// +optional
940
947
FullyLabeledReplicas int32 `json:"fullyLabeledReplicas,omitempty" protobuf:"varint,2,opt,name=fullyLabeledReplicas"`
941
948
942
- // readyReplicas is the number of pods targeted by this ReplicaSet controller with a Ready Condition.
949
+ // The number of non-terminating pods targeted by this ReplicaSet with a Ready Condition.
943
950
// +optional
944
951
ReadyReplicas int32 `json:"readyReplicas,omitempty" protobuf:"varint,4,opt,name=readyReplicas"`
945
952
946
- // The number of available replicas (ready for at least minReadySeconds) for this replica set.
953
+ // The number of available non-terminating pods (ready for at least minReadySeconds) for this replica set.
947
954
// +optional
948
955
AvailableReplicas int32 `json:"availableReplicas,omitempty" protobuf:"varint,5,opt,name=availableReplicas"`
949
956
957
+ // The number of terminating pods for this replica set. Terminating pods have a non-null .metadata.deletionTimestamp
958
+ // and have not yet reached the Failed or Succeeded .status.phase.
959
+ //
960
+ // This is an alpha field. Enable DeploymentPodReplacementPolicy to be able to use this field.
961
+ // +optional
962
+ TerminatingReplicas * int32 `json:"terminatingReplicas,omitempty" protobuf:"varint,7,opt,name=terminatingReplicas"`
963
+
950
964
// ObservedGeneration reflects the generation of the most recently observed ReplicaSet.
951
965
// +optional
952
966
ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,3,opt,name=observedGeneration"`
0 commit comments