Skip to content

Commit

Permalink
Merge pull request #109241 from ravisantoshgudimetla/sts-ar-optional
Browse files Browse the repository at this point in the history
Make STS available replicas optional
  • Loading branch information
k8s-ci-robot committed Apr 2, 2022
2 parents d6ad0ff + 807ae0c commit 3024ddc
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 7 deletions.
3 changes: 1 addition & 2 deletions api/openapi-spec/swagger.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions api/openapi-spec/v3/apis__apps__v1_openapi.json
Expand Up @@ -1203,8 +1203,7 @@
}
},
"required": [
"replicas",
"availableReplicas"
"replicas"
],
"type": "object"
},
Expand Down
1 change: 1 addition & 0 deletions pkg/apis/apps/types.go
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
6 changes: 3 additions & 3 deletions pkg/generated/openapi/zz_generated.openapi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions staging/src/k8s.io/api/apps/v1/generated.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions staging/src/k8s.io/api/apps/v1/types.go
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/generated.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions staging/src/k8s.io/api/apps/v1beta1/types.go
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/generated.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions staging/src/k8s.io/api/apps/v1beta2/types.go
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 3024ddc

Please sign in to comment.