Skip to content

feat: add configurable drift detection interval - #41

Merged
pierinho13 merged 1 commit into
mainfrom
drift_detection_interval
Aug 10, 2026
Merged

feat: add configurable drift detection interval#41
pierinho13 merged 1 commit into
mainfrom
drift_detection_interval

Conversation

@pierinho13

Copy link
Copy Markdown
Owner

Summary

Add a configurable global drift detection interval for GitHub-backed resources.

The operator currently reconciles managed GitHub resources periodically using fixed intervals. At scale, this can generate a significant number of GitHub API requests even when no external drift has occurred.

This change makes the periodic drift detection interval configurable while keeping Kubernetes-driven reconciliation event-based and immediate.

Changes

  • Add a global --drift-detection-interval controller flag.
  • Add Helm configuration through reconciliation.driftDetectionInterval.
  • Keep the existing 5m interval as the default.
  • Validate the configured interval between 1m and 24h.
  • Apply the interval consistently to GitHub-backed controllers.
  • Preserve GitHub rate-limit handling and its server-provided retry time.
  • Keep Kubernetes resource changes event-driven and immediately reconciled.
  • Add tests for default, custom, minimum, maximum and invalid intervals.

Configuration

reconciliation:
  driftDetectionInterval: 5m

@pierinho13
pierinho13 merged commit 83c14d7 into main Aug 10, 2026
9 checks passed
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.

1 participant