autoscaler
autoscaler copied to clipboard
Refactor logging in recommender, updater, and target components
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
To align the logging with the best practices and guidelines established within the Kubernetes ecosystem.
Which issue(s) this PR fixes:
As part of https://github.com/kubernetes/autoscaler/issues/6905, I'm splitting this into multiple PRs rather than submitting a single large PR.
Special notes for your reviewer:
Does this PR introduce a user-facing change?
None
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:
None
Hi @omerap12. Thanks for your PR.
I'm waiting for a kubernetes 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.
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-sigs/prow repository.
/ok-to-test
/lgtm
Hey @jbartosik, can you approve this? /assign jbartosik
Cool to see structured logging is an option now!
/lgtm
/unassign @jbartosik /assign
Thanks for going through all the files! A few small patches to add more context.
Also in this change: there's a few occasions of
klog.Warningf, could you also take care of those, please? Thanks!
Thanks for your review!
Regarding klog.Warningf, there is no klog.WarningS so I'm converting all klog.Warningf to klog.V(0).InfoS is that ok? (please see here)
Thanks for going through all the files! A few small patches to add more context. Also in this change: there's a few occasions of
klog.Warningf, could you also take care of those, please? Thanks!Thanks for your review! Regarding
klog.Warningf, there is noklog.WarningSso I'm converting allklog.Warningftoklog.V(0).InfoSis that ok? (please see here)
That sounds good to me. Thanks for the pointer to the original discussion!
Thanks for going through all the files! A few small patches to add more context. Also in this change: there's a few occasions of
klog.Warningf, could you also take care of those, please? Thanks!Thanks for your review! Regarding
klog.Warningf, there is noklog.WarningSso I'm converting allklog.Warningftoklog.V(0).InfoSis that ok? (please see here)That sounds good to me. Thanks for the pointer to the original discussion!
No problem :) Updated.
/lgtm /approve
Thanks!
/lgtm /approve
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: omerap12, voelzmo
The full list of commands accepted by this bot can be found here.
The pull request process is described here
- ~~vertical-pod-autoscaler/OWNERS~~ [voelzmo]
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment