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 --sub-path opt to set-volume cmd #16459

Conversation

juanvallejo
Copy link
Contributor

Fixes #16275

Adds a --sub-path option to oc set volume ....
Updates command to match web-console functionality.

cc @openshift/cli-review

@openshift-ci-robot openshift-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Sep 20, 2017
@openshift-ci-robot openshift-ci-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Sep 20, 2017
@juanvallejo juanvallejo requested a review from mfojtik September 21, 2017 14:09
@juanvallejo juanvallejo force-pushed the jvallejo/add-sub-path-opt-oc-set-volume branch from 8d11e77 to 48d44cf Compare September 21, 2017 14:23
@openshift-ci-robot openshift-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Sep 21, 2017
@fabianofranz
Copy link
Member

Worth adding some tests to test/cmd/volumes.sh.

@fabianofranz
Copy link
Member

Not necessarily part of this PR, but while reviewing I noticed this cmd doesn't protect against mutually exclusive flags like --list --mount-path=/foo (and now --list --sub-path). Of course having a set command that does --remove and --list is a good part of the cause. It's hard to fix a bad cmd usability design now, but we should open an issue to at least try to make the set of flags behave correctly against each other. ;)

@juanvallejo
Copy link
Contributor Author

@fabianofranz

Not necessarily part of this PR, but while reviewing I noticed this cmd doesn't protect against mutually exclusive flags like --list --mount-path=/foo (and now --list --sub-path). Of course having a set command that does --remove and --list is a good part of the cause. It's hard to fix a bad cmd usability design now, but we should open an issue to at least try to make the set of flags behave correctly against each other. ;)

Sounds good to me, will open issue to track this

@juanvallejo
Copy link
Contributor Author

@fabianofranz

Worth adding some tests to test/cmd/volumes.sh.

Thanks, done!

@fabianofranz
Copy link
Member

/kind bug
/lgtm
/approve

@openshift-ci-robot openshift-ci-robot added lgtm Indicates that a PR is ready to be merged. kind/bug Categorizes issue or PR as related to a bug. labels Oct 4, 2017
@openshift-merge-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fabianofranz, juanvallejo

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 /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 4, 2017
@juanvallejo
Copy link
Contributor Author

/retest

@openshift-merge-robot
Copy link
Contributor

Automatic merge from submit-queue (batch tested with PRs 16545, 16684, 16643, 16459, 16682).

@openshift-merge-robot openshift-merge-robot merged commit 7dfa56f into openshift:master Oct 5, 2017
@juanvallejo juanvallejo deleted the jvallejo/add-sub-path-opt-oc-set-volume branch October 5, 2017 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants