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

improve oc set volume --override flag description #12838

Conversation

juanvallejo
Copy link
Contributor

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

Adds a warning message if overriding a volume that did not previously exist, alerting the user that it has been created instead. Updates the existing flag description for --override.

cc @openshift/cli-review @smarterclayton @nak3

@juanvallejo juanvallejo force-pushed the jvallejo/improve-override-flag-description branch from 33df6e6 to 325e686 Compare February 6, 2017 21:20
@juanvallejo
Copy link
Contributor Author

[test]

@@ -187,7 +187,7 @@ func NewCmdVolume(fullName string, f *clientcmd.Factory, out, errOut io.Writer)
cmd.Flags().StringVarP(&addOpts.Type, "type", "t", "", "Type of the volume source for add operation. Supported options: emptyDir, hostPath, secret, configmap, persistentVolumeClaim")
cmd.Flags().StringVarP(&addOpts.MountPath, "mount-path", "m", "", "Mount path inside the container. Optional param for --add or --remove")
cmd.Flags().StringVarP(&addOpts.DefaultMode, "default-mode", "", "", "The default mode bits to create files with. Can be between 0000 and 0777. Defaults to 0644.")
cmd.Flags().BoolVar(&addOpts.Overwrite, "overwrite", false, "If true, replace existing volume source and/or volume mount for the given resource")
cmd.Flags().BoolVar(&addOpts.Overwrite, "overwrite", false, "If true, replace existing volume source by the same name and/or volume mount for the given resource")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"by the same name" seems awkward - "by name" or "with the provided name"

@juanvallejo juanvallejo force-pushed the jvallejo/improve-override-flag-description branch 2 times, most recently from 636e475 to bf7388d Compare February 16, 2017 15:11
@fabianofranz
Copy link
Member

@juanvallejo squash?

@juanvallejo juanvallejo force-pushed the jvallejo/improve-override-flag-description branch from bf7388d to 4bcaf11 Compare February 17, 2017 20:48
@juanvallejo
Copy link
Contributor Author

@fabianofranz
Thanks, done!

@fabianofranz
Copy link
Member

LGTM [merge]

@juanvallejo
Copy link
Contributor Author

check_future flaked on #12923 re[test]

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 4bcaf11

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin_future/319/) (Base Commit: e4300b3)

@fabianofranz
Copy link
Member

flaked on #12923 re[merge]

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 4bcaf11

@openshift-bot
Copy link
Contributor

openshift-bot commented Feb 19, 2017

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin_future/339/) (Base Commit: d90a085) (Image: devenv-rhel7_5938)

@openshift-bot openshift-bot merged commit fb6905d into openshift:master Feb 19, 2017
@juanvallejo juanvallejo deleted the jvallejo/improve-override-flag-description branch February 20, 2017 14:56
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