You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add dual CAS backend validation with configurable delays
Implement two separate background checkers to optimize validation frequency:
- Default backends: every 30 minutes with 1min base + 0-5min jitter
- All backends: every 24 hours without initial check
Implementation:
- Added InitialDelay field to CASBackendCheckerOpts for configurable delays
- Added SkipFirstCheck flag to allow periodic-only validation
- Changed OnlyDefaults from bool to *bool to distinguish explicit false from default true
- Renamed CheckAllBackends to checkBackends (unexported)
- Added toPtr helper function for pointer creation
- Start two separate checker goroutines with different intervals and scopes
This prevents thundering herd issues during pod startup, provides frequent validation for critical default backends, and comprehensive daily validation for all backends without excessive overhead.
Signed-off-by: Miguel Martinez <miguel@chainloop.dev>
0 commit comments