Repository navigation
Update condition type in spec and do not assert against reason - #903
Conversation
|
/approve |
evankanderson
left a comment
There was a problem hiding this comment.
This seems reasonable, but I'd prefer to leave the general definition of Conditions to reference the kubernetes docs, rather than repeating them in different wording. (I'm concerned that users might think that we're using Condition differently than k8s, rather than that we've standardized our usage of the existing k8s Condition.)
| Type. If a resource has a "happy state" type, it will surface the | ||
| `Reason` and `Message` from the first failing sub Condition. | ||
| should follow the patterns described in this section. Conditions contain | ||
| the fields: |
There was a problem hiding this comment.
Should we reference the k8s docs for the fields?
|
/assign evankanderson |
kk that sounds great! This is the best kubernetes doc I could find to link to, @evankanderson do you know of any others? That doc seems like it has what we need but I'm wondering if I've missed some other official docs. |
f8fa8bc to
bedeab1
Compare
bedeab1 to
f87a3db
Compare
|
PTAL @evankanderson, I linked to the API conventions doc and removed some of the content I added on the fields in |
c55b026 to
f850edb
Compare
evankanderson
left a comment
There was a problem hiding this comment.
A few minor nits, but overall LGTM! Thanks for doing this.
| * [Resource exhausted while creating a revision](#resource-exhausted-while-creating-a-revision) | ||
| * [Container image not present in repository](#container-image-not-present-in-repository) | ||
| * [Container image fails at startup on Revision](#container-image-fails-at-startup-on-revision) | ||
| * [Deployment progressing slowly/stuck](#deployment-progressing-slowly-stuck) |
There was a problem hiding this comment.
Was this indent change made automatically?
I'm fine running auto-format tools on our docs, but we should probably make sure that they end up with consistent indentation, etc, or we'll be forever seeing these sorts of spacing diffs.
There was a problem hiding this comment.
This came from a markdown plugin I have in vscode which complained:
[markdownlint] MD005/list-indent: Inconsistent indentation for list items at the same level [Expected: 4; Actual: 2]
| * [Traffic shift progressing slowly/stuck](#traffic-shift-progressing-slowly-stuck) | ||
|
|
||
| # Deployment-Related Failures | ||
| ### Deployment-Related Failures |
There was a problem hiding this comment.
Can you promote these and the following headers one level up?
Looking at https://github.com/bobcatfish/elafros/blob/conformance_reason/docs/spec/errors.md, the font size on the "Build Failed" header is the same size as the body text -- it would be nice for it to be at least one size bigger.
There was a problem hiding this comment.
This is kind of a weird thing b/c of the way the headers work:
# - Reserved for the title
## - The minimum level for any subheadings, which in this case is Example scenarios
### - Subheading of Example scenarios
But since you want the headers to be bigger I'll make it so that Example scenarios is at the same level as Deployment-Related Failures :D It's not the worst evil I've ever done
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: adrcunha, bobcatfish, evankanderson The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/test pull-elafros-elafros-test |
|
/hold |
|
/test pull-elafros-elafros-test |
* Some spec docs were using `RolloutComplete` for the condition type, however as errors.md documents and as discussed in #351, the type should actually be `Ready` * The conformance tests were asserting against the condition `Reason` but as per #351 and errors.md, values in this field are for the user to consume and should be transpart to client applications. * errors.md didn't make the latter as clear as mattmoor@'s comment in #351 so I copied some of his comment into the doc Also reorganized some of errors.md to make it easier to identify, by field, what requirements are.
f850edb to
711dacf
Compare
|
/hold cancel |
|
PTAL @evankanderson and sorry for the delay on this one |
|
/lgtm Reviewed the docs at https://github.com/bobcatfish/elafros/blob/conformance_reason/docs/spec/errors.md and the headers look better, thanks! |
|
wat |

RolloutCompletefor the condition type,however as errors.md documents and as discussed in Create documentation to track conventional usage of Conditions #351, the type
should actually be
ReadyReasonbut as per Create documentation to track conventional usage of Conditions #351 and errors.md, values in this field are for the
user to consume and should be transpart to client applications.
in Create documentation to track conventional usage of Conditions #351 so I copied some of his comment into the doc
Also reorganized some of errors.md to make it easier to identify,
by field, what requirements are.
Proposed Changes
Readyinstead ofRolloutCompletein all spec docsreasonfield