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
Resolves all 7 CodeRabbit AI issues from PR review:
1. Fix controller requeue bug that could delay expiration past status.ExpiresAt
- Change warning period requeue to min(5min, timeUntilExpiration)
2. Refactor webhook validation to close validation gaps
- Extract validateBMCUserExpirationSpec helper for DRY code
- Add ttlChanged and expiresAtChanged helpers for nil-safe comparisons
- Apply full validation on updates (future dates, TTL ranges)
- Warn on all expiration field changes (removals, switches, modifications)
- Add comprehensive test coverage (13 new test cases, 346 lines)
3. Add missing CRD list markers for proper API server merge behavior
- Add +listType=map and +listMapKey=type to Conditions field
4. Update sample YAML timestamps from 2026 to 2099 to prevent validation failures
5. Update documentation example timestamps from 2026 to 2099
6. Clarify ExpiresAt field documentation for permanence condition
7. Fix test suite consistency by reusing shared accessor variable
Additional improvement:
- Reduce TTL maximum from 10 years to 1 week for more reasonable temporary access
Signed-off-by: Stefan Hipfel <stefan.hipfel@sap.com>
0 commit comments