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

What is the retry interval for config connector and is it configurable? #315

Closed
red8888 opened this issue Nov 24, 2020 · 2 comments
Closed
Labels
question Further information is requested

Comments

@red8888
Copy link

red8888 commented Nov 24, 2020

Sorry if this is documented somewhere but I havent been able to find it

Im experimenting with config connector and im trying to create a custom role for my config connector gsa that is scoped very tightly

What I have been doing is deploying, checking error messages for missing perms, updating the perms, waiting for config connector to retry to create/modify/delete the resource

This has been working but sometimes I have to wait a little while for it to retry. What is the retry interval and is it configurable? will re-applying the same manifest cause config connector to immediately retry creating the resource?

another example: at one point I didnt give config connector enough access to delete a resource so the finalizer hang until I gave it the right access and waited for config connector to retry deleting the resource

@red8888 red8888 added the question Further information is requested label Nov 24, 2020
@xiaobaitusi
Copy link
Contributor

Hi @red8888, thanks for your questions.

What is the retry interval and is it configurable?

On a successful apply, config connector will re-reconcile the resource after 10 mins; that being said, any drift between k8s CR and the underlying resource will be corrected on the next reconciliation.
However, if the initial reconciliation fails for some reason, config connector will retry on it with exponential backoff with 10-mins max
Currently it's not configurable.

will re-applying the same manifest cause config connector to immediately retry creating the resource?

Unfortunately no; applying the exact same manifest will not trigger an UPDATE on k8s api-sever, then config connector will be notified to reconcile. The workaround is to modify the metadata.labels to trigger an immediate retry.

@red8888
Copy link
Author

red8888 commented Dec 1, 2020

thanks! good to know that if I want to initiate an immediate update I can modify/add a label to the CRD definition

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

No branches or pull requests

2 participants