Allow users to change the requeue period #1753
Open
+283
−4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Exposes the requeue period used by the internalReconcile function as an environment variable to address #1171.
Motivation
We want to migrate the management of our monitors from Terraform to the Datadog operator. The problem though is that we will potentially have thousands of monitors that would query the Datadog API every minute. Allowing the user to adjust the requeue period will help reduce the number of requests per minute and avoid rate limit issues.
Additional Notes
PR currently targets the DatadogMonitor resources only, but the same pattern should be applicable for other resources.
Minimum Agent Versions
Currently tested with the following versions:
Describe your test plan
Checklist
bug
,enhancement
,refactoring
,documentation
,tooling
, and/ordependencies
qa/skip-qa
label