-
Notifications
You must be signed in to change notification settings - Fork 44
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
fix(helm): Make log verbosity configurable #161
fix(helm): Make log verbosity configurable #161
Conversation
2d86d4d
to
f22ec85
Compare
Make log verbosity level configurable via chart values, rather than hard-coding --v=5 (the most verbose level, intended for trace-level logging). For backwards compatibility the defaults are still set to "5" everywhere, but this can now be overridden via csiController.{attacher|provisioner|resizer}.logLevel for the controller (or csiController.logLevel to set all three at once) and csiNode.driverRegistrar.logLevel for the CSI node. Signed-off-by: Ian Roberts <[email protected]>
Bumped chart version to fix lint failure |
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
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.
good one @ianroberts , can you pls do the similar changes in cstor-operator helm chart as well
Co-authored-by: Prateek Pandey <[email protected]>
|
This is a modification to openebs-archive#161 to reverse the order of the overriding between csiController.logLevel and csiController.<container>.logLevel following discussions on openebs-archive/cstor-operators#397. Now csiController.logLevel sets a default at the pod level, and csiController.*.logLevel overrides that default for the relevant pod. Signed-off-by: Ian Roberts <[email protected]>
This is a modification to #161 to reverse the order of the overriding between csiController.logLevel and csiController.<container>.logLevel following discussions on openebs-archive/cstor-operators#397. Now csiController.logLevel sets a default at the pod level, and csiController.*.logLevel overrides that default for the relevant pod. Signed-off-by: Ian Roberts <[email protected]>
Why is this PR required? What issue does it fix?:
At present, when installing via the helm charts a number of containers produce overly-verbose logging, in particular the
csi-controller
logs a "successfully renewed lease" message every five seconds continuously.What this PR does?:
Various containers are hard-coded in the Helm chart to run with trace-level logging enabled (
--v=5
), this PR makes these configurable via the values file/--set
. To maintain backwards compatibility the defaults invalues.yaml
remain at--v=5
(whether this should change is a separate discussion...) but they can now be overridden viacsiController.logLevel
to change all the CSI controller containers to the same level in one go. If this value is not set then we fall back to per-container settings, all of which default to "5"csiController.attacher.logLevel
csiController.provisioner.logLevel
csiController.resizer.logLevel
csiNode.logLevel
as above for the CSI node pod, though there is only one container-specific child value in this case:csiNode.driverRegistrar.logLevel
for the node pod driver registrarDoes this PR require any upgrade changes?:
No
If the changes in this PR are manually verified, list down the scenarios covered::
Any additional information for your reviewer? :
Checklist:
<type>(<scope>): <subject>
.