-
Notifications
You must be signed in to change notification settings - Fork 218
[resource controller] add an option to re-schedule a request #369
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
Comments
To expand a little bit more: as part of the reconcile logic of my operator, I need to perform some interaction with an external HTTP service which of course can fail for a number of reasons so as today, the option I have to retry are:
Option 3 seems to be the safest one in my case but still wonder if such shenario should be supported out of the box ot at least have a documentation that explain how to properly implement it. |
A good example would be operators interacting with API. We need to be able to reschedule requests. Scheduler API provides this capability but that is global - we can check things at some time period. @lburgazzoli |
Periodic reconciliation seems to be a very common use case, that it shouldn't be a big overhead to have the controller base class register it's own TimerEventSource. |
yes, will close this. thx! |
The method
UpdateControl<R> createOrUpdateResource(R resources, Context<R> context);
has no option to reschedule a request. Usually you should rely on event source but sometimes it is much more simpler to reschedule a reuqest (which is possible in the golang based sdk).Something like:
Would IMHO, be useful
The text was updated successfully, but these errors were encountered: