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
{{ message }}
Repository navigation
[Feature]: Support Volume Attributes Classes #7800
Is there an existing issue already for this feature request/idea?
I have searched for an existing issue, and could not find anything. I believe this is a new feature request to be evaluated.
What problem is this feature going to solve? Why should it be added?
Currently, if we want to update storage capabilities other than just the size (such as throughput or IOPS), we're forced to create new replicas with the desired settings (with a different StorageClass for example).
This process is both annoying and slow.
Describe the solution you'd like
Volumes Attributes Classes, a feature currently in beta in Kubernetes, allows for the dynamic modification of certain storage parameters. It would be highly beneficial if CloudNative-PG could leverage this feature to enable users to update storage parameters.
Currently, this functionality is only exposed within the pvcTemplate field, which is exclusively used during the creation of PVCs. I believe this parameter could be more effectively placed alongside the existing storage size parameter, making it accessible for updates beyond initial provisioning.
Describe alternatives you've considered
I'm not aware of many alternatives. To my knowledge, the only other way to dynamically change these parameters typically involves using cloud-provider-specific annotations or labels directly on PVCs.
Additional context
No response
Backport?
No
Are you willing to actively contribute to this feature?
Yes
Code of Conduct
I agree to follow this project's Code of Conduct
Reacted by dosubot, Emmanuel Lagrée, Laurent Lavaud, thomasboussekey, Mathieu Charton, Hanshal Mehta and Igor Nikiforov
Activity
gbartolini commentedon Jun 11, 2025
Oh, I love this feature!
gbartolini commentedon Jun 11, 2025
I have tentatively set it to 1.28 - can be moved to 1.27 if we can sneak it there
mnencia commentedon Jun 12, 2025
After discussing with @armru, we believe that we should enhance the pvcTemplate to better manage volume attribute classes.
However, let's wait for a comment from @leonardoce, who is the authority in this field.
2 remaining items
feat(pvc): add `VolumeAttributeClass` reconciliation capability
feat(pvc): add `VolumeAttributeClass` reconciliation capability
fix(pvc): support `VolumeAttributesClass` reconciliation (#7885)
fix(pvc): support `VolumeAttributesClass` reconciliation (#7885)
gbartolini commentedon Jul 9, 2025
In the review process we have decided to classify this as a bug and backport the fix to all supported versions of CloudNativePG: #7885 (comment)
fix(pvc): support `VolumeAttributesClass` reconciliation (cloudnative…