-
Notifications
You must be signed in to change notification settings - Fork 89
Create an overall Ready
to indicate whether the SBR reconcile is completed successfully
#665
Comments
To confirm, the idea would be re-introduce the
Does this match your expectations? |
yes, @isutton , exactly. |
@isutton , if we already get agreement on this, maybe we can put effort to get start to add |
@cdlliuy Sure |
Based on the discussion in the last community call, [1] CollectionReady -> True + InjectionReady -> False [2] CollectionReady -> True + InjectionReady -> True Another |
By looking at the condition table above, it appears to me that they are actually not independent from each other, i.e. some combinations are not possible. Hence, we can simplify the model a lot: we can keep just
|
@isutton @DhritiShikhar @sbose78 , can you help to share you comment on this? |
I'm still not convinced that coalescing the conditions into a single one is the way to go; this will move us back to a single observation regarding a process that contains at least two independent workflows (1, 2). |
The first workflow is contained into the other one. Creating binding secret without associating it to an app is just a special case - when app does not yet exist. However, from user point of view, service binding is still not performed (i.e. not ready). It becomes ready only when we inject binding into the app. All other states could be reported on the way via condition's reason (and having ready=true). CollectionReady and InjectionReady are not really independent from each-other. |
They're not contained into each other, one is an optional post-collection step that might or not be executed. What I think we're missing is that the Let's consider the following service binding resources: spec:
services: [...] and spec:
application: {...}
services: [...] My interpretation is that in the latter, the user is explicitly indicating an application and services--IOW there's the expectation from the user's point of view that the system will do whatever is fine for this configuration--whereas in the former the user has explicitly (intentional or unintentionally) ignored the application field. I believe my usage of The first step is responsible for a) collecting values from resources and b) materializing a secret to be referred later on, and the second (optional because the service binding resource's
The last two rows in the table above indicate that the service binding could be observed ready--as in there's nothing else to do and in the next reconciliation no changes should be made--both with Of course, in the case we're really interested into coalescing both Conditions into a single |
First step could be considered as separate sub workflow, this is what I meant by saying "that a workflow is contained in another one". However, observing this single workflow, we still have just one condition to report: namely a user wants to know if the workflow has completed, i.e. Ready = True. If not true, then through "Reason" we can find out where we got stuck. Even if
At the given workflow, |
@isutton , in above table, why the row
@pedjak should you update the 4th row of above table to be "Ready True EmptyApplicationSelector" ? |
@cdlliuy @isutton I am withdrawing my proposal - it was focused too much on the current implementation. Let's keep then the existing conditions and introduce |
@isutton @DhritiShikhar @pedjak as discussed on the meeting, @qibobo will help to start the effort to add Just follow the table in #665 (comment). Igor will help to review and provide support when we make the change :-) Thanks @isutton ! |
…mpleted successfully redhat-developer#665
…mpleted successfully redhat-developer#665
…mpleted successfully redhat-developer#665
…mpleted successfully redhat-developer#665
I agree with @isutton on this |
I think that having We can have it |
According to #565 (comment) the UX can depend on |
@pedjak when you say service binding got performed, does that mean collectionReady True or collectionReafy and InjectionReady true ? |
@Avni-Sharma , since the name of |
…mpleted successfully redhat-developer#665
…mpleted successfully redhat-developer#665
…mpleted successfully redhat-developer#665
…mpleted successfully redhat-developer#665
…mpleted successfully redhat-developer#665
…mpleted successfully redhat-developer#665
…mpleted successfully redhat-developer#665
PR merged , closing this issue |
According to the discuss on last call for #565 (comment) , I would like to get more comments on the proposal listed by @DhritiShikhar
Any objection to go ahead with this table for the
ready
status under different condition?The text was updated successfully, but these errors were encountered: