fix(base-cluster/monitoring): only roll out alloy tracing ports if enabled#2005
fix(base-cluster/monitoring): only roll out alloy tracing ports if enabled#2005
Conversation
…abled Otherwise the auto-checks if tracing is enabled always trigger
Summary of ChangesHello @cwrau, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request refines the Alloy collector's port configuration within the Helm chart to prevent unnecessary auto-checks from triggering when distributed tracing is not enabled. By making tracing-specific ports conditional on the Highlights
Changelog
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Pull request overview
Updates the telemetry-collector Alloy HelmRelease template so tracing-related service ports are only exposed when tracing is enabled, preventing “tracing-enabled” auto-checks from being triggered by always-present ports.
Changes:
- Wrap Jaeger/OTLP/Zipkin
extraPortsentries behind{{- if .Values.monitoring.tracing.enabled }}. - Keep the
metricsport (8888/TCP) always exposed to support scraping regardless of tracing.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Code Review
This pull request aims to make the tracing-related ports for the Alloy collector conditional based on whether tracing is enabled. The logic is sound, but there is a critical indentation error in the Helm template that will cause YAML rendering to fail if tracing is enabled. I've provided a specific comment with a code suggestion to correct the indentation and ensure the template renders correctly.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughModified the Alloy collector Helm chart template to reorganize port definitions. Relocated the metrics port (8888) entry from within the jaeger section to the top-level extraPorts and adjusted conditional block boundaries to properly wrap extraPorts within the tracing-enabled conditional structure. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
Otherwise the auto-checks if tracing is enabled always trigger
Summary by CodeRabbit
Release Notes