Skip to content

Deprecate --list option from volumes cmd#10457

Merged
openshift-bot merged 1 commit intoopenshift:masterfrom
juanvallejo:jvallejo_remove-list-option-from-oc-set-volumes-help
Aug 18, 2016
Merged

Deprecate --list option from volumes cmd#10457
openshift-bot merged 1 commit intoopenshift:masterfrom
juanvallejo:jvallejo_remove-list-option-from-oc-set-volumes-help

Conversation

@juanvallejo
Copy link
Copy Markdown
Contributor

@juanvallejo juanvallejo commented Aug 16, 2016

Related BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1366560

The --list flag in oc volumes and oc set volumes is redundant. The
command does not take more than one operation at a time (add|remove|list)
and its default operation when none is provided is to list volumes and
volume mounts for the given resource.

The following commands give the exact same output:

  • $ oc set volumes dc database
  • $ oc set volumes dc database --list=true
  • $ oc set volumes dc database --list=false
deploymentconfigs/database
  empty directory as ruby-helloworld-data
    mounted at /var/lib/mysql/data

This patch removes the --list flag from the command's help output.

cc @fabianofranz

@juanvallejo juanvallejo force-pushed the jvallejo_remove-list-option-from-oc-set-volumes-help branch from 1f41ff2 to ced3ee6 Compare August 16, 2016 17:18
@juanvallejo
Copy link
Copy Markdown
Contributor Author

[test]

Related BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1366560

The `--list` flag in `oc volumes` and `oc set volumes` is redundant. The
command does not take more than one operation at a time (add|remove|list)
and its default operation when none is provided is to list volumes and
volume mounts for the given resource.

The following commands give the exact same output:

- `$ oc set volumes dc database`
- `$ oc set volumes dc database --list=true`
- `$ oc set volumes dc database --list=false`

```
deploymentconfigs/database
  empty directory as ruby-helloworld-data
    mounted at /var/lib/mysql/data
```

This patch deprecates the `--list` flag from the command's help output.
@juanvallejo juanvallejo force-pushed the jvallejo_remove-list-option-from-oc-set-volumes-help branch from ced3ee6 to af79d7d Compare August 16, 2016 19:53
@juanvallejo juanvallejo changed the title remove --list option from volumes cmd Deprecate --list option from volumes cmd Aug 16, 2016
@openshift-bot
Copy link
Copy Markdown
Contributor

Evaluated for origin test up to af79d7d

@openshift-bot
Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/7999/)

@0xmichalis
Copy link
Copy Markdown
Contributor

LGTM [merge]

@openshift-bot
Copy link
Copy Markdown
Contributor

openshift-bot commented Aug 18, 2016

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/7999/) (Image: devenv-rhel7_4866)

@openshift-bot
Copy link
Copy Markdown
Contributor

Evaluated for origin merge up to af79d7d

@openshift-bot openshift-bot merged commit c0b4623 into openshift:master Aug 18, 2016
@juanvallejo juanvallejo deleted the jvallejo_remove-list-option-from-oc-set-volumes-help branch August 18, 2016 18:12
@liggitt
Copy link
Copy Markdown
Contributor

liggitt commented Aug 18, 2016

Is --list the default action for all our set commands? If not, I prefer being able to pass an explicit --list flag to all of them without some of them complaining about it being deprecated

@juanvallejo
Copy link
Copy Markdown
Contributor Author

@liggitt
Sorry about the delayed response, I did check and --list is not the default action for every set command. If keeping the flag as an explicit action (and not deprecating it) would be a better user experience, then it would make sense to revert this PR. I could mention this on the BZ as well

cc @fabianofranz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants