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 }}
This repository has been archived by the owner on Sep 14, 2020. It is now read-only.
I would like to embed kopf in an application to perform some extra cluster functions as a response to events.
I can always use a global variable.
Actually, I have to go the embedding way as I want to build wrappers to take some custom arguments as input, validate them, form connection strings, and then start the kopf asyncio loop. Plus I have to pass these params around as every handler would need them.
This should be a pretty common ask, and I am not sure how is that done currently.
Checklist
I have read the documentation and searched there for the problem
I have searched in the GitHub Issues for similar questions
Keywords
"kopf pass context to handlers" on Google and in docs.
The text was updated successfully, but these errors were encountered:
@krish7919 Just to clarify: do you mean an arbitrary object of arbitrary class, which is passed through the call stack from the owning application down to the handlers (all of them), right? Something like a memo kwarg (per-resource container for arbitrary keys/fields), but global and of external origin?
Question
I would like to embed kopf in an application to perform some extra cluster functions as a response to events.
I can always use a global variable.
Actually, I have to go the embedding way as I want to build wrappers to take some custom arguments as input, validate them, form connection strings, and then start the kopf asyncio loop. Plus I have to pass these params around as every handler would need them.
This should be a pretty common ask, and I am not sure how is that done currently.
Checklist
I have read the documentation and searched there for the problem
I have searched in the GitHub Issues for similar questions
Keywords
"kopf pass context to handlers" on Google and in docs.
The text was updated successfully, but these errors were encountered: