-
Notifications
You must be signed in to change notification settings - Fork 11
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
Use declarative conditions for the CRE status. #168
Conversation
Skipping CI for Draft Pull Request. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
How would we indicate, that the secret required for importing an image is not present, or if it is present, an auth failed? What is the rationale for not having more fine-grain condition constants? |
In my opinion, failures causes are too open-ended to be a Reason of their own. I would use the Message field to indicate the precise cause of the failure
(Thinking in term of client case, I expect the dashboard for examples to have one case for failing (displaying some "bad" icon) and then displaying the Message field directly).
wdyt ?
|
c2bae4c
to
60bed95
Compare
We reduce the API surface with less conditions, trying to describe the state of our resource. The API is built around the assumption that client only cares about three things: - Is there a built image available ? (-> can I run it ?) - Is the image up to date ? (-> are my last changes in it ?) - Is there an error ? (-> are my changes correct / is the cluster not working ?)
60bed95
to
ba02776
Compare
This is a better way to signal failure of the build pipeline Co-authored-by: KPostOffice <k.postlethwait24@gmail.com>
@goern Is your question answered ? Should we move forward with this API ? |
/lgtm |
/close |
@goern: Closed this PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
We reduce the API surface with less conditions, trying to describe the
state of our resource.
The API is built around the assumption that client only cares about
three things:
working ?)
Open questions:
Is there an use case (aka, a API client who cares) for it ?
This is only the API side, on which we should agree before adapting the reconciliation loop inside the controller.
I left out Thoth-related conditions for now, this should be additive and not modify the core logic of CRE, I think.
@goern @codificat
Related Issues and Dependencies
fixes: #130
This introduces a breaking change
This should yield a new module release