Skip to content

Add log level#1527

Merged
jetstack-bot merged 9 commits intocert-manager:masterfrom
tuannvm:master
Apr 30, 2019
Merged

Add log level#1527
jetstack-bot merged 9 commits intocert-manager:masterfrom
tuannvm:master

Conversation

@tuannvm
Copy link
Copy Markdown
Contributor

@tuannvm tuannvm commented Apr 5, 2019

What this PR does / why we need it:

  • To allow specifying log level

Which issue this PR fixes:

  • There's no way to configure log level at the moment

Special notes for your reviewer:

Release note:

Allow specifying log level

@jetstack-bot jetstack-bot added dco-signoff: no Indicates that at least one commit in this pull request is missing the DCO sign-off message. do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Apr 5, 2019
@jetstack-bot jetstack-bot requested a review from kragniz April 5, 2019 04:16
@jetstack-bot jetstack-bot added area/deploy Indicates a PR modifies deployment configuration needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Apr 5, 2019
@jetstack-bot
Copy link
Copy Markdown
Contributor

Hi @tuannvm. Thanks for your PR.

I'm waiting for a jetstack or cert-manager member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

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.

@jetstack-bot jetstack-bot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Apr 5, 2019
Signed-off-by: Tuan Nguyen <me@tuannvm.com>
@tuannvm tuannvm force-pushed the master branch 2 times, most recently from cba47fa to affc45f Compare April 5, 2019 04:26
@jetstack-bot jetstack-bot added dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. and removed dco-signoff: no Indicates that at least one commit in this pull request is missing the DCO sign-off message. labels Apr 5, 2019
# maxSurge: 0
# maxUnavailable: 1

logLevel: 2
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can we make this variable a global, and use the same setting across the cainjector, controller and webhook deployments? 😄

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

webhook is currently hard coded to --v=12 and floods my log collector with ~500k entries per day.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yep, definitely not ideal! If you can update this PR to make the variable a global, we should be able to hit two birds with one stone!

@marc-barry
Copy link
Copy Markdown

I think this pull request will address #1526.

@munnerz
Copy link
Copy Markdown
Member

munnerz commented Apr 24, 2019

@tuannvm would you mind addressing the comment above, and making this variable a part of the global stanza and setting the --v flag on the webhook and cainjector component?

@munnerz
Copy link
Copy Markdown
Member

munnerz commented Apr 24, 2019

You'll also need to bump the Helm chart versions and run bazel run //hack:update-deploy-gen to make the CI tests pass

/ok-to-test

@jetstack-bot jetstack-bot added ok-to-test and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Apr 24, 2019
@tuannvm
Copy link
Copy Markdown
Contributor Author

tuannvm commented Apr 25, 2019

@munnerz sure let me address this later today, thanks.

@jetstack-bot jetstack-bot added dco-signoff: no Indicates that at least one commit in this pull request is missing the DCO sign-off message. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Apr 30, 2019
tuannvm added 2 commits April 30, 2019 16:09
Signed-off-by: Tuan Nguyen <me@tuannvm.com>
Signed-off-by: Tuan Nguyen <me@tuannvm.com>
@jetstack-bot jetstack-bot removed the dco-signoff: no Indicates that at least one commit in this pull request is missing the DCO sign-off message. label Apr 30, 2019
@jetstack-bot jetstack-bot added the dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. label Apr 30, 2019
@tuannvm
Copy link
Copy Markdown
Contributor Author

tuannvm commented Apr 30, 2019

/retest

tuannvm added 3 commits April 30, 2019 17:16
Signed-off-by: Tuan Nguyen <me@tuannvm.com>
Signed-off-by: Tuan Nguyen <me@tuannvm.com>
Signed-off-by: Tuan Nguyen <me@tuannvm.com>
@jetstack-bot jetstack-bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Apr 30, 2019
Signed-off-by: Tuan Nguyen <me@tuannvm.com>
@jetstack-bot jetstack-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 30, 2019
Signed-off-by: Tuan Nguyen <me@tuannvm.com>
@jetstack-bot jetstack-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 30, 2019
@tuannvm
Copy link
Copy Markdown
Contributor Author

tuannvm commented Apr 30, 2019

/test verify

@tuannvm
Copy link
Copy Markdown
Contributor Author

tuannvm commented Apr 30, 2019

@munnerz any idea how to fix the error above?

Signed-off-by: Tuan Nguyen <me@tuannvm.com>
@munnerz
Copy link
Copy Markdown
Member

munnerz commented Apr 30, 2019

Same as before, you need to run bazel run //hack:update-deploy-gen and commit the results:

diff '--exclude=__main__' -Naupr /bazel-scratch/.cache/bazel/_bazel_root/e50ce42c8209d553b7e7491e69e67e89/sandbox/processwrapper-sandbox/4691/execroot/__main__/bazel-out/k8-fastbuild/bin/hack/verify-deploy-gen.runfiles/__main__/hack/..//deploy/manifests/cert-manager.yaml /tmp/tmp.NZ9gxKqHro/src/github.com/jetstack/cert-manager/deploy/manifests/cert-manager.yaml
--- /bazel-scratch/.cache/bazel/_bazel_root/e50ce42c8209d553b7e7491e69e67e89/sandbox/processwrapper-sandbox/4691/execroot/__main__/bazel-out/k8-fastbuild/bin/hack/verify-deploy-gen.runfiles/__main__/hack/..//deploy/manifests/cert-manager.yaml	2019-04-30 09:57:47.382035316 +0000
+++ /tmp/tmp.NZ9gxKqHro/src/github.com/jetstack/cert-manager/deploy/manifests/cert-manager.yaml	2019-04-30 10:01:17.849961350 +0000
@@ -1384,7 +1384,7 @@ spec:
 
 ---
 # Source: cert-manager/charts/webhook/templates/deployment.yaml
-piVersion: apps/v1beta1
+apiVersion: apps/v1beta1
 kind: Deployment
 metadata:
   name: cert-manager-webhook
/bazel-scratch/.cache/bazel/_bazel_root/e50ce42c8209d553b7e7491e69e67e89/sandbox/processwrapper-sandbox/4691/execroot/__main__/bazel-out/k8-fastbuild/bin/hack/verify-deploy-gen.runfiles/__main__/hack/../ is out of date. Please run 'bazel run //hack:update-deploy-gen'

@tuannvm
Copy link
Copy Markdown
Contributor Author

tuannvm commented Apr 30, 2019

/retest

@tuannvm
Copy link
Copy Markdown
Contributor Author

tuannvm commented Apr 30, 2019

@munnerz guess is okay already, can you help take another look? thanks

@munnerz munnerz added the tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges. label Apr 30, 2019
@munnerz
Copy link
Copy Markdown
Member

munnerz commented Apr 30, 2019

Thanks for working through the issues here 😄

/lgtm
/approve

@jetstack-bot jetstack-bot added the lgtm Indicates that a PR is ready to be merged. label Apr 30, 2019
@jetstack-bot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: munnerz, tuannvm

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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

@jetstack-bot jetstack-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 30, 2019
@jetstack-bot jetstack-bot merged commit 4b4742d into cert-manager:master Apr 30, 2019
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. area/deploy Indicates a PR modifies deployment configuration dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. lgtm Indicates that a PR is ready to be merged. ok-to-test release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants