-
Notifications
You must be signed in to change notification settings - Fork 910
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 kubebuilder shortName for work #3468
Conversation
Do you mean another CRD resource that Kind is |
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## master #3468 +/- ##
==========================================
- Coverage 53.76% 53.74% -0.02%
==========================================
Files 210 210
Lines 19123 19118 -5
==========================================
- Hits 10281 10275 -6
- Misses 8290 8291 +1
Partials 552 552
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 1 file with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Yes, there will be problems with kubectl get work at this time. The alphabetical order of another crd is before the work of Karmada, so kubectl get work cannot query the work resources of Karmada @RainbowMango |
Can you give an example to illustrate the problem? |
Seems kubectl resolves
The work API comes from kubernetes-sigs/work-api. |
I'm hesitant to introduce a short name for Work, just as you said it's generic and simple. I'm thinking if it is possible to add a short name to the |
Adding a shortname to
Yes, because it is generic and simple, other crds may also use this name |
Signed-off-by: huangyanfeng <huangyanfeng1992@gmail.com>
27bd7cd
to
5b0f710
Compare
Assuming the short name of
Do you mean the kubectl resolves the resource type by alphabetic order? Since |
yes, i can get the
yes, Karmada's Work will be ignored by default |
I get it. You have to use |
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 way, are you using Karmada in production now?
We are already supporters of karmada now. I and @whitewindmills are from a team |
If the |
In this case Will still get the privatens.xxx.io/v1alpha1/works. Karmada's Work will be ignored by default |
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
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: RainbowMango 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 |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Consider adding a shortname to work? Because in our environment, I found that the resources of other teams are also called work. Is the name work too generic? Add a shortname to facilitate the distinction
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: