Skip to content
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

Wrong CRD plural generated #1993

Closed
benjaminhuo opened this issue Feb 5, 2021 · 3 comments
Closed

Wrong CRD plural generated #1993

benjaminhuo opened this issue Feb 5, 2021 · 3 comments
Labels
kind/support Categorizes issue or PR as a support question.

Comments

@benjaminhuo
Copy link

benjaminhuo commented Feb 5, 2021

  • What broke (please include exact error messages if you can)
    Wrong CRD plural generated, the following CRD is generated when running kubebuilder create api --group openfunction.io --version v1alpha1 --kind FunctionBuild or make manifests

image

  • What did you expect to happen? What do you think went wrong?
    plural: functionbuilds should be generated instead of plural: functionbuildren
  • What versions of software are you using? Specifically, the following are often useful:
  • go version
    v1.14
  • kubebuilder version (kubebuilder version) and scaffolding version (check your PROJECT file)
    v2.3.1
  • controller-runtime version (check your go.mod file)
    v0.6.4
  • controller-tools version
    controller-gen@v0.2.5

/kind bug

@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Feb 5, 2021
@Adirio
Copy link
Contributor

Adirio commented Feb 9, 2021

In kubebuilder v2.3.1 plurals can not be manually provided and use flect.Pluralize(strings.ToLower(<KIND>)) to obtain the plural form. v3.0.0 which will be released shortly offers a -plural flag that allows users to specify other plural forms.

@Adirio
Copy link
Contributor

Adirio commented Feb 9, 2021

/remove-kind bug
/kind support

@k8s-ci-robot k8s-ci-robot added kind/support Categorizes issue or PR as a support question. and removed kind/bug Categorizes issue or PR as related to a bug. labels Feb 9, 2021
@benjaminhuo
Copy link
Author

Got it, thanks for the reply @Adirio
Close this issue for now.

Ben

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support Categorizes issue or PR as a support question.
Projects
None yet
Development

No branches or pull requests

3 participants