You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature Request] Add type to result of condition evaluation #2424
The current Workflow implementation allows for the registration of dependent ready conditions, which produces a binary result. However, the specific business logic for what "ready" means may contain information that would be useful to propagate to the status of the primary, such as "Conditions".
Proposal (for brainstorming)
Include an additional return type in the signature of the isMet method, which will allow for storing additional information related to the computation of whether the dependent is ready or not.
Example Scenario
Dependent Resource -> Ingress
Is Ready Condition -> Are endpoints externally accessible (DNS record etc), returns status of each
Primary Status Condition -> Are endpoints ready, if not which are pending
@metacosm Read through the PR and it looks good to me. I agree with the comment that it is general and could be applied to more conditions, though my main use-case is covered here, so this part is mainly nice-to-have for me
Thanks both (+ @csviri ) for the quick action on this!
Activity
csviri commentedon Jun 4, 2024
This sounds, useful yes!
Note that you can now add arbitrary information to the context and use it later when creating the status here:
java-operator-sdk/operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/reconciler/dependent/managed/ManagedDependentResourceContext.java
Lines 26 to 41 in 7e2f3ae
feat: allow return additional information for conditions
metacosm commentedon Jun 5, 2024
@btlem let us know if the associated PR addresses your use case.
btlem commentedon Jun 11, 2024
@metacosm Read through the PR and it looks good to me. I agree with the comment that it is general and could be applied to more conditions, though my main use-case is covered here, so this part is mainly nice-to-have for me
Thanks both (+ @csviri ) for the quick action on this!
feat: allow return additional information for conditions
feat: allow return additional information for conditions
feat: allow return additional information for conditions
feat: allow return additional information for conditions
feat: allow return additional information for conditions
feat: allow return additional information for conditions
feat: allow return additional information for conditions
feat: allow returning additional information from conditions (#2426)
15 remaining items
refactor: clean up informer configuration classes (#2470)
feat: allow returning additional information from conditions (#2426)
refactor: clean up informer configuration classes (#2470)
feat: allow returning additional information from conditions (#2426)
refactor: clean up informer configuration classes (#2470)
feat: allow returning additional information from conditions (#2426)
refactor: clean up informer configuration classes (#2470)
feat: allow returning additional information from conditions (#2426)
refactor: clean up informer configuration classes (#2470)
feat: allow returning additional information from conditions (#2426)
refactor: clean up informer configuration classes (#2470)
feat: allow returning additional information from conditions (#2426)
refactor: clean up informer configuration classes (#2470)
feat: allow returning additional information from conditions (#2426)
refactor: clean up informer configuration classes (#2470)