Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply informer-operator design pattern to implement the drivers #63

Open
hainesc opened this issue Dec 7, 2021 · 0 comments
Open

Apply informer-operator design pattern to implement the drivers #63

hainesc opened this issue Dec 7, 2021 · 0 comments

Comments

@hainesc
Copy link

hainesc commented Dec 7, 2021

The informer-operator design pattern is popular in k8s, especially for the event driven component such as deploy-controller.

With a deep insight, the mapper is an event driven controller indeed. The only different from the deploy controller is the event source. Event of the former comes from the api server while event of the mapper comes from the change of disk file(mount configmap as a local file) and MQTT, I think it is worth to make the two event sources(Or anything that the event comes from) as an Informer implementation, so the driver developer can write their mapper as what they do in operator development, it is more friendly for them.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant