Contains the changes required to limit namespace cache based on ResourceSyncRule rules.match.namespaces
Adds the functionality to init cache for all namespaces if no namespaces list is provided in RSR or init cache with namespaces from RSR
syncReconciler and managedController are updated to init cache from namespaces provided from RSR rules.match.namespaces
Why?
In larger cluster with namespaces more than 30-40, it was observed that CR-controller watches/caches all the namespaces into the mem, which caused frequent OOMKilled issue while attaching peer clusters.
This PR allows users to select namespaces to cache for their RSR, there-by reducing memory usage.
Checklist
[x] Implementation tested
[x] User guide and development docs updated (if needed)
What's in this PR?
Contains the changes required to limit namespace cache based on ResourceSyncRule
rules.match.namespaces
rules.match.namespaces
Why?
In larger cluster with namespaces more than 30-40, it was observed that CR-controller watches/caches all the namespaces into the mem, which caused frequent OOMKilled issue while attaching peer clusters. This PR allows users to select namespaces to cache for their RSR, there-by reducing memory usage.
Checklist