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
♻️ Refactor: Share cache transform function between components
Extract the stripManagedFieldsAndAnnotations function to a shared
utility package to eliminate code duplication between operator-controller
and catalogd.
Changes:
- Created internal/shared/util/cache/transform.go with
StripManagedFieldsAndAnnotations function
- Updated cmd/operator-controller/main.go to use shared implementation
- Updated cmd/catalogd/main.go to use shared implementation
- Removed duplicate function definitions (46 lines of duplication removed)
This improves maintainability by having a single source of truth for
the cache transform logic used across both components.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments