StatefulSetStatus
attribute availableReplicas
set to required by mistake?
#109210
Labels
kind/bug
Categorizes issue or PR as related to a bug.
kind/documentation
Categorizes issue or PR as related to documentation.
kind/regression
Categorizes issue or PR as related to a regression from a prior release.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
sig/apps
Categorizes an issue or PR as relevant to SIG Apps.
What happened?
Looking at the swagger specifications for
StatefulSetStatus
, it definesavailableReplicas
as a required attribute. But looking at the description ofavailableReplicas
, it states...This is a beta field and enabled/disabled by StatefulSetMinReadySeconds feature gate
. Should this in fact be a required attribute?I come about this from using lightkube, a python package that generates models from the swagger definitions and thus builds a
StatefulSetStatus
that requires an attribute that is not enabled.What did you expect to happen?
That only truly required attributes be required in the swagger definition
How can we reproduce it (as minimally and precisely as possible)?
Reproduction is not applicable as this is an issue with a spec
Anything else we need to know?
No response
Kubernetes version
Appeared in 1.22 (I believe) and affects current versions. Does not affect 1.21
Cloud provider
n/a
OS version
No response
Install tools
No response
Container runtime (CRI) and version (if applicable)
No response
Related plugins (CNI, CSI, ...) and versions (if applicable)
No response
The text was updated successfully, but these errors were encountered: