change maxLogSize units to base 10 (remove the 'i')#492
Conversation
* when using base 2 (Gi) there are logging errors: found error in /csi-logs/*.log , skipping /logrotate-config/csi:8 unknown unit 'i' Signed-off-by: William Cooke <cookewe@gmail.com>
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Updates the default maxLogSize used for log rotation across the ceph-csi-drivers Helm chart, and aligns the user-facing chart documentation with the new default.
Changes:
- Changed log rotation
maxLogSizedefault from"10Gi"to"10G"invalues.yaml. - Updated the drivers chart documentation to reflect the new
"10G"default for all drivers and operator defaults.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| docs/helm-charts/drivers-chart.md | Updates the documented default maxLogSize value for log rotation parameters. |
| deploy/charts/ceph-csi-drivers/values.yaml | Changes the chart’s actual default maxLogSize values used by operator defaults and each driver. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: William Cooke <cookewe@gmail.com>
|
@cookew Thanks for the fix, can you please also add kubebuilder validation for ceph-csi-operator/api/v1/driver_types.go Line 45 in ce19562 |
|
@Madhu-1 I will be honest, I am not a go programmer and this might be a little beyond me. After looking around at some documentation, would this be the best way to implement this? Adding this line in right before line 45? I am not sure of all the valid characters that can be accepted to prevent the error.
|
|
Describe what this PR does
When using base 2 (Gi) there are logging errors from the log rotater:
found error in /csi-logs/*.log , skipping /logrotate-config/csi:8 unknown unit 'i'This changes maxLogSize units to base 10 (remove the 'i') in the ceph-csi-drivers values.yaml file and updates the driver-chart.md file.
Is there anything that requires special attention
Do you have any questions? No
Is the change backward compatible? No
Are there concerns around backward compatibility? No
Provide any external context for the change, if any.
The
found error in /csi-logs/*.log , skipping /logrotate-config/csi:8 unknown unit 'i'error messages no longer appeared after changing these in my own values.yaml file.Related issues
Fixes: #491
Future concerns
None.
Checklist:
guidelines in the developer
guide.
Request
notes
updated with breaking and/or notable changes for the next major release.