-
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ replace deprecated function LoggerTo() from zap package (only v3+) #1692
✨ replace deprecated function LoggerTo() from zap package (only v3+) #1692
Conversation
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
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. I understand the commands that are listed here. |
Welcome @antcs! |
Hi @antcs. 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. |
I signed it |
@@ -144,7 +144,7 @@ func TestAPIs(t *testing.T) { | |||
} | |||
|
|||
var _ = BeforeSuite(func(done Done) { | |||
logf.SetLogger(zap.LoggerTo(GinkgoWriter, true)) | |||
logf.SetLogger(zap.New(zap.WriteTo(GinkgoWriter), zap.UseDevMode(true))) |
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 am afraid that we cannot change the v2. Only the v3 in this case.
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.
Really tks for your contribution 🥇. It is great. Following some needs:
- Do the change only for v3
- Assign yourself to CLA. See: ✨ replace deprecated function LoggerTo() from zap package (only v3+) #1692 (comment)
- The title should have the mojo
:sparkles:
. See: https://github.com/kubernetes-sigs/kubebuilder/blob/master/CONTRIBUTING.md#pr-process. Also, could you add(only v3+)
as well? - Changes in the scaffolds requires we update the testdata dir. It is done by running the makefile target
make generate
.
8bb80db
to
325c864
Compare
@camilamacedo86 Hopefully all requests are satisfied. |
325c864
to
4eee159
Compare
/ok-to-test |
/test pull-kubebuilder-e2e-k8s-1-17-0 |
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
Great work 👍
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: antcs, camilamacedo86, gabbifish 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 |
@gabbifish @camilamacedo86 The lgtm label is missing here. Who will add it to the pull request? I would assume not me as I opened the pr. |
/lgtm Thank you for your patience here! :) |
/test pull-kubebuilder-e2e-k8s-1-15-3 |
/test pull-kubebuilder-e2e-k8s-1-16-2 |
1 similar comment
/test pull-kubebuilder-e2e-k8s-1-16-2 |
hmmm... somehow this missed a generated file: https://travis-ci.org/github/kubernetes-sigs/kubebuilder/jobs/732111307. |
PR kubernetes-sigs#1692 updated the v3 scaffolding, but missed a generated file that was somehow not caught by CI until now. This fixes that.
func LoggerTo(destWriter io.Writer, development bool) logr.Logger