-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Labels
enhancementNew feature or requestNew feature or request
Description
With the option to specify precedence in the ConfigMap, we have an opportunity to optimize the memory footprint of csi-addons.
If the precedence is set to sc-only, there is no need to watch PVC resources. The current PVC controller handles most of the heavy lifting, but it can be refactored into two separate controllers.
One controller will watch StorageClass objects, and the other will watch PersistentVolumeClaim objects. Only one of these controllers needs to run, depending on the specified precedence.
We can further reduce memory usage by watching only PartialObjectMetadata instead of the full object.
To summarize:
- Split the controller into separate ones for
StorageClassandPVC - Run only one controller based on the configured precedence
- Watch only one resource
Kind, not both - Use
PartialObjectMetadatato avoid caching full objects
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request