chore(base-cluster): add loki retention value#1774
Conversation
WalkthroughThe change parameterizes Loki's retention_period by replacing the hard-coded "45d" in the template with a Helm value, adds Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (3)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
charts/base-cluster/values.schema.json (1)
924-926: Add pattern validation for consistency.The
retention_periodschema lacks format validation, unlike the similarretentionDurationfields for Prometheus (line 630-632) and AlertManager (line 778-781), which both enforce the pattern[0-9]+(ms|s|m|h|d|w|y).Apply this diff to add pattern validation and improve schema consistency:
"retention_period": { - "type": "string" + "type": "string", + "pattern": "[0-9]+(ms|s|m|h|d|w|y)", + "description": "Loki log retention period (e.g., 45d, 7d, 24h)", + "examples": ["45d", "7d", "24h"] },
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
charts/base-cluster/templates/monitoring/logs/loki.yaml(1 hunks)charts/base-cluster/values.schema.json(1 hunks)charts/base-cluster/values.yaml(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
- GitHub Check: check licenses
- GitHub Check: lint helm chart (base-cluster)
🔇 Additional comments (2)
charts/base-cluster/values.yaml (1)
313-318: ✓ LGTMThe default value is correctly placed and maintains backwards compatibility with the previously hard-coded 45d retention period.
charts/base-cluster/templates/monitoring/logs/loki.yaml (1)
80-82: ✓ LGTMThe template correctly references the new parameterized retention period value in the Loki limits configuration.
966b083 to
97ea028
Compare
🤖 I have created a release *beep* *boop* --- ## [10.0.2](base-cluster-v10.0.1...base-cluster-v10.0.2) (2025-10-31) ### Bug Fixes * **base-cluster:** add missing value to template ([#1775](#1775)) ([870e7d1](870e7d1)) ### Miscellaneous Chores * **base-cluster:** add loki retention value ([#1774](#1774)) ([de6b582](de6b582)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Summary by CodeRabbit