-
Notifications
You must be signed in to change notification settings - Fork 532
Set default log level for kubefed controller manager. #1245
Set default log level for kubefed controller manager. #1245
Conversation
/approve |
/approve cancel On second thoughts, can you please make this configurable via the chart, defaulting to |
That would be better I guess, If you don't insist I'd like to try this approach next time. I was thinking upgrade helm to V3 too. |
I'm debugging an issue and found these |
@RainbowMango Could you share what logs you found helpful from changing to I'm happy to merge this as is to, as long as we have issues open for future improvements. |
3806f2f
to
5cb879d
Compare
Just pushed a new commit to change the log level to
These kinds of logs would show why a controller not working in abnormal cases like #1241.
Actually, I tried the log level from
Here is the issue. #1246 |
@jimmidyson Can this PR moving forward now? And, about how to make this configurable via the chart, could you share your idea? |
@RainbowMango The idea of making configurable is to define a property in the chart that sets the value to |
@@ -22,6 +22,7 @@ spec: | |||
containers: | |||
- command: | |||
- /hyperfed/controller-manager | |||
- "--v=2" |
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.
add a command property to the values.yaml for the controller so this verbosity level can be re-defined.
5cb879d
to
48f0fb2
Compare
@hectorj2f Thanks. just pushed a new commit, could you please take a look again? |
It works for me, I believe we will keep the log level of the webhook hardcores to v=8. We can improve it in the future although ideally we should expose it for both. |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hectorj2f, RainbowMango 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 |
/lgtm |
What this PR does / why we need it:
Set default log level to
2
for the controller manager.With this level, more useful logs would be printed and without much noise.
Which issue(s) this PR fixes :
Fixes #1246
Special notes for your reviewer: