Skip to content

[Feature]: Support Volume Attributes Classes #7800

Description

@xabufr

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

Activity

  1. added
    triage
    on Jun 10, 2025
  2. gbartolini commented on Jun 11, 2025

    @gbartolini
    Contributor

    Oh, I love this feature!

  3. added
    enhancement 🪄
    and removed
    triage
    on Jun 11, 2025
  4. moved this to In Progress in Roadmapon Jun 11, 2025
  5. moved this from Backlog to Waiting for First Review in CloudNativePG operator developmenton Jun 11, 2025
  6. added this to the 1.28.0 milestone on Jun 11, 2025
  7. gbartolini commented on Jun 11, 2025

    @gbartolini
    Contributor

    I have tentatively set it to 1.28 - can be moved to 1.27 if we can sneak it there

  8. mnencia commented on Jun 12, 2025

    @mnencia
    Member

    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.

  9. 2 remaining items

  10. added a commit that references this issue on Jun 27, 2025
    e0c34e5
  11. modified the milestones: 1.28.0, 1.27.0 on Jul 1, 2025
  12. added a commit that references this issue on Jul 9, 2025
    d6c5e72
  13. moved this from In Progress to Done in Roadmapon Jul 9, 2025
  14. moved this from Waiting for First Review to Done in CloudNativePG operator developmenton Jul 9, 2025
  15. added
    bug 🐛
    on Jul 9, 2025
  16. modified the milestones: 1.27.0, 1.26.1 on Jul 9, 2025
  17. added 2 commits that reference this issue on Jul 9, 2025
    4a7847a
    e00fbd0
  18. gbartolini commented on Jul 9, 2025

    @gbartolini
    Contributor

    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)

  19. added a commit that references this issue on Jul 9, 2025
    3b17eb1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bug 🐛enhancement 🪄

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions