-
Notifications
You must be signed in to change notification settings - Fork 425
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
🐛 Fix plural #1090
base: main
Are you sure you want to change the base?
🐛 Fix plural #1090
Conversation
The committers listed above are authorized under a signed CLA. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: vietanhtwdk The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Welcome @vietanhtwdk! |
Hi @vietanhtwdk. Thanks for your PR. I'm waiting for a kubernetes-sigs 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-sigs/prow repository. |
619ad17
to
6ec4d49
Compare
@@ -42,7 +43,7 @@ func (r *Resource) Validate() error { | |||
} | |||
|
|||
if len(r.Resource) == 0 { | |||
r.Resource = flect.Pluralize(strings.ToLower(r.Kind)) | |||
r.Resource = inflection.Plural(strings.ToLower(r.Kind)) |
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 would like to ask for we think a lot before change this one.
-1 for this change.
My 2 cents is that it can broke the projects built so far and kubebuilder integration,
see: https://github.com/kubernetes-sigs/kubebuilder/blob/master/pkg/model/resource/utils.go#L59-L62
I think the answer here would be the same of: kubernetes-sigs/kubebuilder#3402 (comment)
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.
/hold
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.
Agree. We can't make a change that leads to any different names here
🐛Fix plural
Fix: #1087