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

feat(controller): Add flag to change the default syncPeriod #433

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gvdhart
Copy link
Contributor

@gvdhart gvdhart commented Feb 6, 2025

/kind feature

What this PR does / why we need it:

Add flag to controller to change the default syncPeriod (aka the minimum time between reconciles when no resource has been changed).

Fixes #374

Special notes for your reviewer:

Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

TODOs:

  • squashed commits
  • includes documentation
  • adds unit tests

@gvdhart gvdhart force-pushed the feat/controller/add-sync-period-flag branch from 8fbe8fb to 5925e31 Compare February 6, 2025 10:10
Copy link
Contributor

@jfbus jfbus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  ./main.go:93:3: unknown field SyncPeriod in struct literal of type controllerruntime.Options (typecheck)

@@ -86,6 +88,7 @@ func main() {
LeaseDuration: &leaseDuration,
RenewDeadline: &renewDeadline,
RetryPeriod: &retryPeriod,
SyncPeriod: &syncPeriod,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't it be

Cache: cache.Options{
  SyncPeriod: &syncPeriod
},

?

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

Successfully merging this pull request may close these issues.

[Bug]: Every 5min all resources are reconciled while there are no changes
2 participants