Skip to content

Alternate brokers need alternate ConditionSets for Broker and Trigger #3094

@grantr

Description

@grantr

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

Metadata

Metadata

Assignees

Labels

area/apikind/cleanupCategorizes issue or PR as related to cleaning up code, process, or technical debt.priority/important-soonMust be staffed and worked on either currently, or very soon, ideally in time for the next release.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions