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
Add Conditions alongside Phases #9339
Comments
Also another thing I realized while reviewing #9308 even though I had written than part of code before: why do we separate Failed from Error and Cancelled for builds? Upstream pod conditions seem to use different kinds of Reasons (CrashLoopBack, ImagePullLoopBack, Error, DeadlineExceeded, etc.) for a Failed condition. Is it sensible to do the same thing for builds? |
We wanted to preserve "failed" for indicating an actual build failure (eg compile error) as compared with error (infrastructure problems) or canceled (user choice). could it be done with reasons? it could. but that means requiring the user look at an additional field and makes filtering/sorting harder. |
I don't think the user would need to do anything different from today if we correctly surfaced the reasons on the output of |
Reasons do not tend to be as tightly enumerated as Phase, they are more freeform and likely to have new ones added. So again, sorting/filtering is harder (both for users, and for the UI components). |
I think we want to add conditions. But existing phases can't change
(we can't add to them either). So we should focus on adding
conditions that convey info we need.
|
All error conditions should have well defined reasons and those On Wed, Jun 15, 2016 at 12:48 PM, Clayton Coleman ccoleman@redhat.com wrote:
|
Can someone summarize, or point me to a summary definition and intended usage for:
? |
https://github.com/kubernetes/kubernetes/blob/master/docs/devel/api-conventions.md On Wed, Jun 15, 2016 at 1:36 PM, Ben Parees notifications@github.com
|
|
If Phase is being replaced by Condition, but we now have multiple conditions at a time, that does not seem to lend itself to the current "oc get" output format with a single row per resource and single column per field being reported. Has someone address how conditions should be reported in that format? |
So far? Just a column that has the |
Phase is not being replaced by condition. No new phases should be added to On Wed, Jun 15, 2016 at 2:58 PM, Ben Parees notifications@github.com
|
"Some resources in the v1 API contain fields called phase, and associated message, reason, and other status fields. The pattern of using phase is deprecated. Newer API types should use conditions instead." certainly sounds like phase is being replaced by condition (that doesn't mean we're changing existing usage, but going forward it is taking the place of where phase was used previously). |
that seems problematic for any constrained width console. we already struggle to keep the get output to 80 chars. |
They are actually consolidated. In practice they don't matter as much. On Wed, Jun 15, 2016 at 4:20 PM, Ben Parees notifications@github.com
|
The latest condition. Conditions also have timestamps. |
Moved to Trello: https://trello.com/c/NVTCdbKe/1045-conditions-for-builds cc: @mfojtik |
In a similar fashion to kubernetes/kubernetes#14181
Our build and deployment config API should[1] transition from Phases to Conditions
Deployment related changes are tracked in https://trello.com/c/OIggCmzo/699-5-deployments-downstream-conditions so I am handing this issue to @bparees
[1] Is it something we want to do? I would say that we should follow upstream conventions and furthermore Conditions seem to be more than a simple convention.
@openshift/api-review
The text was updated successfully, but these errors were encountered: