Skip to content

Make file informer resync period configurable#89

Open
ivanauth wants to merge 1 commit into
authzed:mainfrom
ivanauth:fix/issue-9-fileinformer-resync-options
Open

Make file informer resync period configurable#89
ivanauth wants to merge 1 commit into
authzed:mainfrom
ivanauth:fix/issue-9-fileinformer-resync-options

Conversation

@ivanauth
Copy link
Copy Markdown

@ivanauth ivanauth commented May 15, 2026

Adds a functional-options API to NewFileInformerFactory so callers can override the default 1-minute resync period.

Existing call sites are unaffected.

Closes #9

Add a functional-options API to NewFileInformerFactory so callers can
override the default 1-minute resync period. A zero value disables
synthetic resync events, matching the convention used by client-go
informers; negative values fall back to the default.

The resync loop now uses a time.Ticker (skipped entirely when resyncs
are disabled) instead of a per-iteration context-with-timeout.
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

Successfully merging this pull request may close these issues.

Configurable resync period for FileInformer

1 participant