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

configurable frequency time to check for annotations and reduce logging to show only errors and objects deleted. #41

Open
amjadseera opened this issue Jul 27, 2023 · 1 comment

Comments

@amjadseera
Copy link

Describe the feature request

right now the code check every five minutes and scans for all the objects for the annotations. i would be good if can have a configurable time for it.
2023/07/27 07:18:10 Execution took 9840ms, sleeping for 5m0s
2023/07/27 07:23:19 Execution took 9752ms, sleeping for 5m0s
2023/07/27 07:28:29 Execution took 9734ms, sleeping for 5m0s
2023/07/27 07:33:30 [persistentvolumeclaims/nifi-state-nifi-0] is configured with a TTL of 5s, which means it has expired 42h54m8s ago
2023/07/27 07:33:30 [persistentvolumeclaims/nifi-state-nifi-0] deleted
2023/07/27 07:33:32 [statefulsets/nifi] is configured with a TTL of 5s, which means it has expired 18m39s ago
2023/07/27 07:33:32 [statefulsets/nifi] deleted
2023/07/27 07:33:39 Execution took 10125ms, sleeping for 5m0s

Why do you personally want this feature to be implemented?

it would be nice if its configurable or made intelligent using watch. that would

How long have you been using this project?

1 month

Additional information

abiliity to watch for annotations or a configurable frequency to check
reduce logging to show only error and objects deleted.

@TwiN
Copy link
Owner

TwiN commented Aug 14, 2023

Good idea.

This would just involve making this configurable:

ExecutionInterval = 5 * time.Minute // Interval between each reconciliation

and updating the README to reflect the new feature.

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

No branches or pull requests

2 participants