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 PersistentVolumeSelector to pvc.Spec #21308

Closed
wants to merge 1 commit into from

Conversation

markturansky
Copy link
Contributor

@markturansky markturansky commented Feb 16, 2016

As part of the proposal for dynamic provisioning (#17056), this PR adds a PersistentVolumeSelector to claim.Spec.

The selector would require a match on volume labels.

@saad-ali @thockin @kubernetes/rh-storage

Adding @bgrant0607 for API change.


This change is Reviewable

@markturansky markturansky added area/api Indicates an issue on api area. team/api kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API labels Feb 16, 2016
@k8s-github-robot k8s-github-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Feb 16, 2016
@erictune erictune assigned thockin and unassigned erictune Feb 16, 2016
@k8s-bot
Copy link

k8s-bot commented Feb 17, 2016

Can one of the admins verify that this patch is reasonable to test? (reply "ok to test", or if you trust the user, reply "add to whitelist")

If this message is too spammy, please complain to ixdy.

@bgrant0607
Copy link
Member

@markturansky How sophisticated do you imagine the selectors will need to be? I didn't see example use cases in the proposal.

If you haven't seen it, a slightly more powerful selector was designed for nodes:
https://github.com/kubernetes/kubernetes/blob/master/docs/design/nodeaffinity.md

cc @davidopp

@markturansky
Copy link
Contributor Author

@bgrant0607 I'm happy to follow whatever model for selectors is desired for the API. Are any of these new selectors genericized at all? Implementing my own persistentVolumeOperator, for example, seems gratuitous.

@bgrant0607
Copy link
Member

@markturansky
Copy link
Contributor Author

Thanks @bgrant0607. Much easier with the generic unversioned.LabelSelector. PR is updated.

@k8s-github-robot
Copy link

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 Feb 19, 2016
@bgrant0607
Copy link
Member

It makes the swagger a bit ugly, but that's ok. If we need to, we can switch to another copy of the LabelSelector types in the future, but this is the first usage in v1 at the moment.

All of the comments in the PV*types incorrectly refer to Go field names, but let's fix that separately.

@bgrant0607
Copy link
Member

LGTM. Please rebase.

@k8s-github-robot k8s-github-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 25, 2016
@markturansky
Copy link
Contributor Author

@bgrant0607 I see what you mean regarding the type names being in the comments in the PV types. I can follow up with that PR.

@saad-ali
Copy link
Member

LGTM fwiw

@saad-ali saad-ali added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 26, 2016
@k8s-github-robot
Copy link

@k8s-bot test this issue: #IGNORE

Tests have been pending for 24 hours

@wojtek-t
Copy link
Member

@k8s-bot test this please github issue: #IGNORE (the previous build is handing for 20+ hours)

1 similar comment
@wojtek-t
Copy link
Member

@k8s-bot test this please github issue: #IGNORE (the previous build is handing for 20+ hours)

@wojtek-t wojtek-t closed this Feb 28, 2016
@wojtek-t wojtek-t reopened this Feb 28, 2016
@wojtek-t
Copy link
Member

@k8s-bot test this please github issue: #IGNORE (the previous build is handing for 20+ hours)

@wojtek-t
Copy link
Member

@ixdy @spxtr - it seems than Jenkins is not picking up this PR. Can you please take a look?

@k8s-github-robot
Copy link

@k8s-bot test this issue: #IGNORE

Tests have been pending for 24 hours

2 similar comments
@k8s-github-robot
Copy link

@k8s-bot test this issue: #IGNORE

Tests have been pending for 24 hours

@k8s-github-robot
Copy link

@k8s-bot test this issue: #IGNORE

Tests have been pending for 24 hours

@ncdc
Copy link
Member

ncdc commented Mar 2, 2016

We're tracking this for OpenShift - any objections to adding the v1.2 milestone to this PR? @thockin @bgrant0607 @mikedanese @davidopp

@ncdc
Copy link
Member

ncdc commented Mar 2, 2016

Actually, if there isn't any code going in to 1.2 that's going to use this API change, I would vote to move it to 1.3

@saad-ali
Copy link
Member

saad-ali commented Mar 2, 2016

Actually, if there isn't any code going in to 1.2 that's going to use this API change, I would vote to move it to 1.3

I'll let @bgrant0607 make the call since he is the keeper of the API.

My 2 cents: This only exposes new API options but doesn't actually enable the functionality using it--that could be confusing for the user. We should merge this into the same release as the feature(s) that intend to use it: storage classes and volume label selection. Both of those features will not be part of 1.2, and we do not release features in minor releases (i.e. 1.2.X), so they will likely be part of 1.3. Therefore, I'd say hold off on merging this for 1.2.

@ncdc
Copy link
Member

ncdc commented Mar 2, 2016

Yeah, 1.3 is fine with us - sorry for the noise 😄

@ncdc
Copy link
Member

ncdc commented Mar 2, 2016

Do we need to temporarily remove the lgtm label so it doesn't get merged by the bot before the 1.2 branch is cut?

@davidopp davidopp removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 2, 2016
@davidopp
Copy link
Member

davidopp commented Mar 2, 2016

I agree with @saad-ali . Removed LGTM label.

@bgrant0607
Copy link
Member

1.3 SGTM.

1.2 will be cut on Friday.

@k8s-github-robot
Copy link

@markturansky 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 Mar 4, 2016
@k8s-github-robot k8s-github-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 4, 2016
@k8s-bot
Copy link

k8s-bot commented Mar 5, 2016

GCE e2e build/test passed for commit 4910f99.

@k8s-github-robot
Copy link

@markturansky 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 Mar 17, 2016
@markturansky
Copy link
Contributor Author

Closed in favor of #25298 by @pmorie

@thockin thockin closed this May 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/api Indicates an issue on api area. 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. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.