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 configurable initial delay with jitter to CAS backend validation
Add InitialDelay field to CASBackendCheckerOpts to allow configuring the initial delay before first validation. This prevents thundering herd issues when multiple pods start simultaneously.
Implementation:
- CAS backend checker now accepts InitialDelay via options
- Default behavior: 1 minute base delay + 0-5 minutes jitter (calculated in main.go)
- Changed OnlyDefaults from bool to *bool to distinguish between explicit false and default true
- Validation runs after initial delay, then continues with periodic checks
This ensures validation happens in background without affecting boot performance and spreads validation load across pods during rolling deployments.
Signed-off-by: Miguel Martinez <miguel@chainloop.dev>
0 commit comments