New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should we deprecate status.conditions? #50798
Comments
/sig apps @kubernetes/sig-apps-feature-requests Suggest we don't include Conditions in Deployment and ReplicaSet when moving them to GA. Can express same information in plain status fields (or events for the times when things happened). |
@kubernetes/sig-architecture-api-reviews |
Closing in favor of #7856 which was updated to conclude that we should remove conditions. |
I agree with the conclusions here, in case that isn't obvious. |
Please see newer discussion kubernetes/community#4521 |
I've surveyed kubernetes API types to see how Status Conditions are used, and evaluated their usability as well.
Method: Examine 54 kubernetes API types, spanning core types, incubator project, and operator (TPR/CRD) types. Detailed Data. Deeper examination of condition subfield on 14 conditions across 4 api types.
Goal: see whether
Status.Conditions
is useful and how used.Survey Findings:
Status
is widely used across Kubernetes types. Half of the types surveyed haveStatus
.Status.Conditions
is not widely used. 18% of types surveyed haveStatus.Conditions
.Ready
is the most common condition type forStatus.Conditions
.Ready
..status.condition
types do not use the Reason or Message fields.Usability Issues with Conditions:
Status
can express the main thing (whether the condition is met) in 1 line. Some status stanzas don't fit on a screen (let alone in a UI Card).grep
,awk
,jq
orkubectl -o jsonpath
, compared to single k-v pairStatus
items. Source code to evaluate truth of a condition is also verbose compare to plain fields (search array vs lookup).Possible Conclusions:
Conditions
type and so baised towards using it.Possible next Steps:
Conditions
is not recommended for new types.apps/v1
, we could dropStatus.Conditions
.The text was updated successfully, but these errors were encountered: