-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃悰 Use correct file name in the comments of [kind]_types.go
#1927
馃悰 Use correct file name in the comments of [kind]_types.go
#1927
Conversation
Welcome @south37! |
Hi @south37. 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/test-infra repository. |
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.
Templates already have access to the lower
function, don't need to mess with mixins for this. Revert the changes in pkg/model/file/mixins.go
and apply the changes below. The resulting testdata
folder should be the same as in this PR.
pkg/plugins/golang/v2/scaffolds/internal/templates/api/types.go
Outdated
Show resolved
Hide resolved
pkg/plugins/golang/v3/scaffolds/internal/templates/api/types.go
Outdated
Show resolved
Hide resolved
/ok-to-test |
CI / Verify testdata directory (pull_request) seems to have failed due to the fact that it is now 2021 馃檲
cf. https://github.com/kubernetes-sigs/kubebuilder/runs/1643192980#step:5:1224 |
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.
d7c30ff
to
ea0edf3
Compare
@prafull01 |
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
/hold
Holding until the 2021 copyright gets fixed
ea0edf3
to
aa9c2e0
Compare
#1929 was merged to master branch, so I rebased this branch! 馃挕 |
/approve |
OK. |
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Adirio, camilamacedo86, prafull01, south37 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 |
The 2020/2021 is fixed already it shows fine to get merged. So |
Thank you for your kind review! 馃槃 |
WHY (= Motivation)
cf. The correct file name should be used in the comments of
[kind]_types.go
#1925WHAT (= A description of the change)
Fixed the comments in
[kind]_types.go
. The file names in the comments are now correct.To be more specific, I updated the following files.
pkg/model/file/mixins.go[kind]_types.go
聽#1927 (review)Then executed
$ make generate
. This execution updated the mock data used in the e2e test.Fixes #1925