-
Notifications
You must be signed in to change notification settings - Fork 39.8k
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
Don't provision for PVCs with AccessModes unsupported by plugin #47274
Don't provision for PVCs with AccessModes unsupported by plugin #47274
Conversation
Hi @wongma7. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
@k8s-bot ok to test |
@k8s-bot pull-kubernetes-bazel test this W0609 22:30:16.201] ERROR: /workspace/k8s.io/kubernetes/pkg/controller/volume/persistentvolume/BUILD:55:1: null failed: filter_exec_bin failed: error executing command seems relevant but hack/update-bazel.sh did nothing? |
35055b0
to
0c6ef28
Compare
/release-note |
@kubernetes/sig-storage-pr-reviews |
also add to storage os https://github.com/kubernetes/kubernetes/tree/master/pkg/volume/storageos |
0c6ef28
to
5e788a6
Compare
/retest |
/retest |
I intentionally left that out, it's only for testing purposes and so we should allow for devs to make "don't care" PVCs with dummy AccessModes |
@wongma7 |
/retest |
@wongma7 didn't we plan to introduce a field called |
@gnufied we (I) haven't yet given up on that; this is the quick & easy bug fix but long-term we imo need to add that and/or create-time validation |
/assign |
/approve the change in general |
It seems we need 1.7 issue to merge it there. |
@k8s-bot pull-kubernetes-e2e-gce-etcd3 test this |
@thockin I'd vote for 1.7. This could actually break someone. If they have a PVC they copy/paste in or something. I'd rather fix it sooner than leave the broken behaviour for later. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jsafrane, wongma7 Associated issue: 46540 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
Automatic merge from submit-queue (batch tested with PRs 46929, 47391, 47399, 47428, 47274) |
Automatic merge from submit-queue (batch tested with PRs 46929, 47391, 47399, 47428, 47274) Don't provision for PVCs with AccessModes unsupported by plugin Fail early in case the user actually expects e.g. RWM from AWS when in reality that isn't possible. @eparis @gnufied edit: this needs release note because it's a breaking bugfix; will write one. kubernetes#46540 ```release-note Fix dynamic provisioning of PVs with inaccurate AccessModes by refusing to provision when PVCs ask for AccessModes that can't be satisfied by the PVs' underlying volume plugin ```
Fail early in case the user actually expects e.g. RWM from AWS when in reality that isn't possible.
@eparis @gnufied
edit: this needs release note because it's a breaking bugfix; will write one.
#46540