Adds github.com/kuadrant/policy-machinery/controller for implementing custom controllers with a built-in Gateway API topology.
The controller watches for events related to any kind of object for which an informer is specified; typically Gateway API resources and custom policy kinds. It then keeps an in-memory Gateway API topology up to date.
A callback function can be specified to act on the events of interest.
Adds
github.com/kuadrant/policy-machinery/controller
for implementing custom controllers with a built-in Gateway API topology.The controller watches for events related to any kind of object for which an informer is specified; typically Gateway API resources and custom policy kinds. It then keeps an in-memory Gateway API topology up to date.
A callback function can be specified to act on the events of interest.
Example:
This PR will be followed by another one with a full example of using the package to implement a custom controller.