Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add storageclass selector for schedule #676

Open
Hechamon opened this issue Jul 16, 2024 · 0 comments
Open

Add storageclass selector for schedule #676

Hechamon opened this issue Jul 16, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Hechamon
Copy link

Describe the feature you'd like to have.
Currently it is only possible to add a label based claims selector. I would like to be able to select pvcs based on the storage class.

What is the value to the end user? (why is it a priority?)
My usecase is the following: I have two storage classes that are based on the same csi driver. Both of these need different storagesnapshot classes for the snapshots. I cannot leave the snapshot class blank, because kubernetes will fail to select which snapshot class to use. I also cannot set a default snapshot class in the cluster, because that will fail for half my snapshots.

As a workaround, I can add a label to the pvc, to mark which storage class they are using. However this is likely to be forgotten by my engineers or impossible for external helm charts for example.
That's why it would be great to be able to create a separate schedule which the proper snapshot class based on which storage class the volume is.

How will we know we have a good solution? (acceptance criteria)
I can create a schedule that selects pvcs based on their storage class.

Additional context

@Hechamon Hechamon added the enhancement New feature or request label Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant