Problem
When implementing an alternate broker, we need to add/remove conditions to the ConditionSets on Broker and Trigger to reflect the characteristics of the alternate implementation. Currently ConditionSet is an unexported variable so it can't be modified for alternate implementations, requiring workarounds.
I know of two workarounds and neither are great:
Solutions that could work better:
- Export the ConditionSet variable and replace it at init time with the desired one. This is fine when there's only one Broker class being reconciled per container, but doesn't work if there are two classes in a container.
- Inject the proper ConditionSet into the queued resource before reconciling. This is probably the "right" solution. The class-aware generated reconciler would have to understand what ConditionSet should be used.
/cc @n3wscott @whaught
Problem
When implementing an alternate broker, we need to add/remove conditions to the ConditionSets on Broker and Trigger to reflect the characteristics of the alternate implementation. Currently ConditionSet is an unexported variable so it can't be modified for alternate implementations, requiring workarounds.
I know of two workarounds and neither are great:
Solutions that could work better:
/cc @n3wscott @whaught