-
Notifications
You must be signed in to change notification settings - Fork 40
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
Renaming instance-id and instance-name #589
Renaming instance-id and instance-name #589
Conversation
ac09413
to
ed14607
Compare
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.
Idea is not to rename, we should add the new fields and deprecate the old ones and remove later in the next release
Ok got it, thanks. I will do. |
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.
Instead of directly replacing instace-id with workspace-id , I think we should mark instance-id flag as deprecated and introduce workspace-id flag.
My concern is it will be breaking change better to remove later after warning user. But its upto you.
0d18710
to
446acb9
Compare
@mkumatag @Karthik-K-N could you please review the changes? Thanks |
446acb9
to
6b3c0fa
Compare
I have also updated the |
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.
one small change, other LGTM
cmd/image/upload/upload.go
Outdated
@@ -249,7 +249,7 @@ pvsadm image upload --bucket bucket1320 -f centos-8-latest.ova.gz --bucket-regio | |||
func init() { | |||
Cmd.Flags().StringVar(&pkg.ImageCMDOptions.ResourceGrp, "resource-group", "", "Name of user resource group.") | |||
Cmd.Flags().StringVar(&pkg.ImageCMDOptions.ServicePlan, "cos-serviceplan", "standard", "Cloud Object Storage Class type, available values are [standard, lite].") | |||
Cmd.Flags().StringVarP(&pkg.ImageCMDOptions.InstanceName, "cos-instance-name", "n", "", "Cloud Object Storage instance name.") | |||
Cmd.Flags().StringVarP(&pkg.ImageCMDOptions.COSInstanceName, "cos-instance-name", "s", "", "Cloud Object Storage instance name.") |
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.
This is a breaking change, lets not rename the short flag to s
here!
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.
Ok, will mark this shorthand flag as deprecated.
Cmd.Flags().MarkShorthandDeprecated("cos-instance-name", "please use --cos-instance-name")
Same flag has been used for import command with s
shorthand -
pvsadm/cmd/image/import/import.go
Line 248 in 3b388b0
Cmd.Flags().StringVarP(&pkg.ImageCMDOptions.COSInstanceName, "cos-instance-name", "s", "", "Cloud Object Storage instance name.") |
6b3c0fa
to
a77f3f8
Compare
Signed-off-by: Varad Ahirwadkar <varad.ahirwadkar1@ibm.com>
a77f3f8
to
a1a8e5f
Compare
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mkumatag, varad-ahirwadkar The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Fixes: #555
Renaming
instance-id
andinstance-name
toworkspace-id
andworkspace-name
.