Conversation
… if `suspend` is not set
WalkthroughAdjusted kube-state-metrics customResourceState configuration: reconcile_suspended_gauge now reads directly from spec.suspend by changing path to ["spec","suspend"] and removing valueFrom. Gauge type and nilIsZero remain unchanged. No other files or entities modified. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (1)
⏰ 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). (3)
🔇 Additional comments (1)
✨ Finishing Touches🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Pull Request Overview
This PR fixes a configuration issue in the kube-state-metrics setup where metrics could be duplicated when the suspend field is not set. The fix consolidates the path specification for accessing the suspend field in Kubernetes custom resources.
- Simplifies the path configuration for the
suspendfield metric - Prevents metric duplication by using a single consolidated path instead of separate path and valueFrom specifications
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
🤖 I have created a release *beep* *boop* --- ## [9.3.2](base-cluster-v9.3.1...base-cluster-v9.3.2) (2025-09-02) ### Bug Fixes * **base-cluster/monitoring:** otherwise the metric will be duplicated if `suspend` is not set ([#1661](#1661)) ([193c6b3](193c6b3)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * Bug Fixes * Prevents duplicate monitoring metrics when “suspend” is not set in the base-cluster chart. * Documentation * Added changelog entry for version 9.3.2 with details of the metrics duplication fix. * Chores * Updated base-cluster chart to version 9.3.2 in release configuration. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Summary by CodeRabbit