-
Notifications
You must be signed in to change notification settings - Fork 374
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 short names for Volume Snapshot CRDs #604
Conversation
Welcome @robbie-demuth! |
Hi @robbie-demuth. Thanks for your PR. I'm waiting for a kubernetes-csi member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
ef8efe7
to
bb21a80
Compare
/ok-to-test |
/assign |
/retest |
This allows end users to run `kubectl get vs`, for example, instead of `kubectl get volumesnapshot`. The following short names have been implemented: * `VolumeSnapshot` - `vs` * `VolumeSnapshotContent` - `vsc`, `vscs` * `VolumeSnapshotClass` - `vsclass`, `vsclasses`
bb21a80
to
4f5383a
Compare
@xing-yang - Anything you'd like me to do here to help usher this along? |
@@ -29,7 +29,7 @@ import ( | |||
// VolumeSnapshot is a user's request for either creating a point-in-time | |||
// snapshot of a persistent volume, or binding to a pre-existing snapshot. | |||
// +kubebuilder:object:root=true | |||
// +kubebuilder:resource:scope=Namespaced | |||
// +kubebuilder:resource:scope=Namespaced,shortName=vs |
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.
Does this not require a plural?
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.
I'm not sure. It felt funny to type vss
, but I can certainly add it if you'd like. I will note that the short name for stateful sets, sts
, doesn't have a plural
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.
I wonder if there's a convention for that. If StatefulSet does not have a plural, we are probably fine.
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.
I couldn't find any published conventions. I reached out to SIG-API-Machinery, SIG-Arch, and SIG-Usability via Slack, but didn't get a response
/assign @yuxiangqian @jingxu97 |
Can you add details in the release note, i.e., which short name is corresponding to which CRD. |
Done! |
@robbie-demuth Can you post the results from using the short names? |
I added a screenshot to the description. Does that work for you? |
Can you submit a followup PR to add this info in README? https://github.com/kubernetes-csi/external-snapshotter#readme |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: robbie-demuth, xing-yang 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 |
After this is merged, can you backport this to release-5.0 branch? |
Sure, but what are you thinking exactly? I don't see anything in the README now that deals with custom resources (other than the resource quota stuff)
Sure thing |
Opened #607 for the backport |
How about adding a sub-section under https://github.com/kubernetes-csi/external-snapshotter#usage? |
What type of PR is this?
/kind feature
What this PR does / why we need it:
This allows end users to run
kubectl get vs
, for example, instead ofkubectl get volumesnapshot
. The following short names have beenimplemented:
VolumeSnapshot
-vs
VolumeSnapshotContent
-vsc
,vscs
VolumeSnapshotClass
-vsclass
,vsclasses
Which issue(s) this PR fixes:
Fixes #603
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Yes