Open VannTen opened 1 year ago
A requirement here is to make sure that the odh-dashboard works with the changes made to the conditions
One point what's not clear to me and can impact the way we design the set of conditions:
What should be the relation to the Shower/Meteor resources ? If I'm correct, with CRE we handle the build part, and the run part should stay in those resources ? Or should we handle those as "subresources" and hides them behind the CRE ?
In particular, I think this should impact whether or not we have a Running condition for in the CRE status.
wdyt @goern @codificat ? (this might be a good point to discuss on CNBi meeting Wednesday.
Meteor CRD & friend should stay for compatibility, cre does not need to take control over them, if the meteor build can be handled by CRE it could (prio--)
From my pov meteor and cre is pretty disjoint and decoupled
Does this help? In line with other minds?
On Tue, Jan 10, 2023 at 02:12:04AM -0800, Christoph Görn wrote:
Meteor CRD & friend should stay for compatibility, cre does not need to take control over them, if the meteor build can be handled by CRE it could (prio--)
From my pov meteor and cre is pretty disjoint and decoupled
Does this help? In line with other minds?
My understanding of the Meteor resources is that, given a predefined image, it uses it to present the notebook to the user, correct ?
If so, inside the CRE, do we only need to care about building, and just leave the running part exactly the same, handled by the Meteor resource ?
TL;DR:
Problem statement
Many of the conditions defined in
api/v1alpha/cnbi_conditions_consts.go
describe state changes instead of state. This goes against the recommendations in the kubernetes API conventions relative to conditions, particularly:Take a look at
controllers/cnbi/controller.go
:(this is the code in #129, but it only changes the syntax, not the conditions name or the reasons) For nearly all the conditions, we use a Reason which is the same that the condition type; I think our Reasons are fine (describe state transitions), but our conditions types are not.
High-level Goals
Be more Kubernetes-like when implementing the Conditions.
Proposal description
List of possible alternative conditions:
Additional context
126 is relevant; tackling the too together might be a good idea.
Consider in particular the following scenario:
Acceptance Criteria
References
/wg cnbi /priority important-longterm /group-programming