-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
improve oc set volume --override
flag description
#12838
Conversation
33df6e6
to
325e686
Compare
[test] |
pkg/cmd/cli/cmd/set/volume.go
Outdated
@@ -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") |
There was a problem hiding this comment.
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"
636e475
to
bf7388d
Compare
@juanvallejo squash? |
bf7388d
to
4bcaf11
Compare
@fabianofranz |
LGTM [merge] |
check_future flaked on #12923 re[test] |
Evaluated for origin test up to 4bcaf11 |
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin_future/319/) (Base Commit: e4300b3) |
flaked on #12923 re[merge] |
Evaluated for origin merge up to 4bcaf11 |
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) |
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