Skip to content

Commit

Permalink
[sts] api: Make available replicas optional
Browse files Browse the repository at this point in the history
  • Loading branch information
ravisantoshgudimetla committed Apr 1, 2022
1 parent 9eb544e commit 807ae0c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/apis/apps/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ type StatefulSetStatus struct {

// Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset.
// This is a beta field and requires enabling StatefulSetMinReadySeconds feature gate.
// +optional
AvailableReplicas int32
}

Expand Down
1 change: 1 addition & 0 deletions staging/src/k8s.io/api/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 staging/src/k8s.io/api/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 staging/src/k8s.io/api/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 807ae0c

Please sign in to comment.