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

⚠ Add --plural flag (go/v3) #1967

Merged
merged 1 commit into from
Jan 22, 2021
Merged

Conversation

Adirio
Copy link
Contributor

@Adirio Adirio commented Jan 22, 2021

Adds the flags and the required marker to the types file.

Fixes: #1805
Closes: #1802

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jan 22, 2021
@Adirio Adirio force-pushed the plurals branch 2 times, most recently from 46366a5 to 445ed3d Compare January 22, 2021 11:39
Adds the flags and the required marker to the types file.

Signed-off-by: Adrian Orive Oneca <adrian.orive.oneca@gmail.com>
$kb create webhook --group crew --version v1 --kind Admiral --plural=admirales --defaulting
else
$kb create api --group crew --version v1 --kind Admiral --controller=true --resource=true --namespaced=false --make=false
$kb create webhook --group crew --version v1 --kind Admiral --defaulting
fi
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

checked that the changes here does not change the current scenarios and just add a new one to check a plural with an irregular form for an api and webhook

@Adirio
Copy link
Contributor Author

Adirio commented Jan 22, 2021

I asked @prafull01 to check if this PR solved the Issue he raised (#1805) and he kindly agreed to check it (Thank you!).

Copy link
Member

@camilamacedo86 camilamacedo86 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It has a mojo as breaking changes just because for webhooks kb had a flag fs.StringVar(&p.options.Plural, "resource", "", "resource irregular plural form") which was changed to plural to be aligned with its bug fix for Apis.

So, since it shows a very simple bug fix and requested by users from the community via slack who face issues to scaffold an api with an irregular plural form .. well done 🥇 then, I am happy in

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 22, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Adirio, camilamacedo86

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 22, 2021
@k8s-ci-robot k8s-ci-robot merged commit b290147 into kubernetes-sigs:master Jan 22, 2021
@Adirio Adirio deleted the plurals branch January 22, 2021 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add the controller-gen markers in types.go if the --plural is specified
3 participants