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 selector to PersistentVolumeClaim #25298

Closed
wants to merge 2 commits into from

Conversation

pmorie
Copy link
Member

@pmorie pmorie commented May 7, 2016

Refresh of #21308, original credit to @markturansky

@bgrant0607 for API changes.
@kubernetes/sig-storage

@pmorie pmorie added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label May 7, 2016
@pmorie pmorie added this to the v1.3 milestone May 7, 2016
@pmorie pmorie added the sig/storage Categorizes an issue or PR as relevant to SIG Storage. label May 7, 2016
@pmorie pmorie changed the title Pv selector Add selector to PersistentVolumeClaim May 7, 2016
@k8s-github-robot k8s-github-robot added kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels May 7, 2016
@saad-ali
Copy link
Member

saad-ali commented May 7, 2016

The change looks fine. I'm a little apprehensive about merging API changes without the underlying wiring. It would make for a slightly larger PR, but I prefer API change bundled with the business logic.

@saad-ali saad-ali self-assigned this May 7, 2016
@k8s-bot
Copy link

k8s-bot commented May 7, 2016

GCE e2e build/test passed for commit b639c07.

@pmorie
Copy link
Member Author

pmorie commented May 7, 2016

@saad-ali I can understand that point of view, but most of the features I have written that were sizable were API-first, example: #18455.

@markturansky
Copy link
Contributor

@pmorie This should only require an additional bit of logic in the binder.

Start here: https://github.com/kubernetes/kubernetes/blob/master/pkg/controller/persistentvolume/types.go#L142

At this point, it's already filtered by AccessModes, the line above sorts and searches by Capacity. We just need an "if selector not nil, then apply selector to labels" as a 3rd filter on available volumes.

This should be a relatively easy addition + unit test along with the API changes.

@k8s-github-robot
Copy link

@pmorie PR needs rebase

@k8s-github-robot k8s-github-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 8, 2016
@saad-ali
Copy link
Member

saad-ali commented May 8, 2016

@saad-ali I can understand that point of view, but most of the features I have written that were sizable were API-first, example: #18455.

Your call, I can be convinced either way.

@pmorie
Copy link
Member Author

pmorie commented May 10, 2016

I'm going to close this for now until the proposal that deals with it is merged and the refactor it's going to be on top of is merged.

@pmorie pmorie closed this May 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/storage Categorizes an issue or PR as relevant to SIG Storage. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants