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
Wrap the discovery client with memory.NewMemCacheClient() to cache
OpenAPI v3 schema responses. This prevents repeated fetching and
unmarshaling of schemas during ClusterExtensionRevision reconciliation.
The boxcutter machinery uses the discovery client to fetch OpenAPI
schemas for resource validation and comparison. Without caching, these
schemas are fetched and parsed on every reconciliation, leading to
excessive memory allocations.
Testing shows significant improvements:
- Peak memory usage reduced by 16.9% (8.4 MB)
- Memory growth reduced by 29.3% (10.5 MB)
- OpenAPI-related allocations reduced by 73% (~9.5 MB)
- Eliminated repeated schema unmarshaling operations
- Extended test duration by 8% before OOM
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments