Skip to content

Commit

Permalink
[sts] api: Make available replicas optional
Browse files Browse the repository at this point in the history
Kubernetes-commit: 807ae0c318a2a5e2d8f6945170d8c129957cc8cf
  • Loading branch information
ravisantoshgudimetla authored and k8s-publishing-bot committed Apr 1, 2022
1 parent 38ec09a commit 7734d26
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ type StatefulSetStatus struct {

// Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset.
// This is a beta field and enabled/disabled by StatefulSetMinReadySeconds feature gate.
// +optional
AvailableReplicas int32 `json:"availableReplicas" protobuf:"varint,11,opt,name=availableReplicas"`
}

Expand Down
1 change: 1 addition & 0 deletions apps/v1beta1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ type StatefulSetStatus struct {

// Total number of available pods (ready for at least minReadySeconds) targeted by this StatefulSet.
// This is a beta field and enabled/disabled by StatefulSetMinReadySeconds feature gate.
// +optional
AvailableReplicas int32 `json:"availableReplicas" protobuf:"varint,11,opt,name=availableReplicas"`
}

Expand Down
1 change: 1 addition & 0 deletions apps/v1beta2/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ type StatefulSetStatus struct {

// Total number of available pods (ready for at least minReadySeconds) targeted by this StatefulSet.
// This is a beta field and enabled/disabled by StatefulSetMinReadySeconds feature gate.
// +optional
AvailableReplicas int32 `json:"availableReplicas" protobuf:"varint,11,opt,name=availableReplicas"`
}

Expand Down

0 comments on commit 7734d26

Please sign in to comment.