-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: adding annotation to define reconciliation frequency #297
Conversation
added an example for using the reconciliation frequency added constant to define annotation key controller checks if annotation has been defined, if annotation is present, the value is considered to be in seconds if annotation is not present, 120 seconds is taken as default value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ADorigi thanks!
This is great, but please relocate the constant to the validator core repo and add a helper there to construct a ctrl.Result
given a slice of annotations. It can go under pkg/plugins
. That way each plugin's controller can call the helper in the core repo to construct its result and we don't duplicate code.
Lastly, please do log the requeue delay so we know the annotation is working.
@TylerGillson |
@ADorigi any plans to follow up on this? I'd like to reassign this feature, but wanted to check in first. |
@TylerGillson I am blocked by validator-labs/validator#424. I will update this PR once the helper in the 0.1.13 release of validator-labs/validator is accessible by the plugin repositories. Please advise if there is another way. |
Apologies for that... I didn't realize we hadn't cut a release with your validator changes! I just triggered a new release. It will be available shortly. |
Thank you @TylerGillson |
Issue
partially resolves validator-labs/validator#358
Description
validation.validator.labs/reconciliation-frequency
.integer
representing the time inseconds
.120
seconds as default.OciValidator
manifest as an example.