Enforcing Kubernetes limitVolumeSize Policy with Trident: Aggregate Visibility Limitations for SVM-Scoped Roles in ONTAP
Applies to
- Astra Trident (Kubernetes CSI driver)
- Trident deployments using SVM-scoped roles (e.g.,
vsadmin)
Issue
When attempting to enforce Kubernetes storage policies such as limitVolumeSize (e.g., restricting PVCs to 400Gi and limiting to 40 volumes per SVM) using Trident with an SVM-scoped ONTAP role (like vsadmin), Trident cannot access aggregate-level capacity information. This prevents the use of Trident’s limitAggregateUsage feature, which would dynamically prevent provisioning when aggregate usage exceeds a threshold.
Example log/behavior:
- Trident cannot retrieve aggregate capacity details.
- Attempts to create a custom ONTAP role with aggregate visibility for an SVM-scoped user fail.
- No error is thrown for
limitVolumeSizeenforcement, butlimitAggregateUsageis non-functional. - Reference: GitHub Issue #822
