feat: pod label configuration in cosmo router helm chart#2200
Conversation
|
Warning Rate limit exceeded@miklosbarabas has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 2 minutes and 18 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (7)
WalkthroughSwitches a Makefile cleanup command from del to rm. Updates Helm values and docs to enable the router by default and introduces support for additional Pod labels in the router chart by adding a new values key, helper template, and wiring it into the Deployment Pod template labels. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Pre-merge checks (2 passed, 1 warning)❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing Touches
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: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
helm/cosmo/README.md (1)
35-255: Regenerate chart docs to include router.additionalPodLabels and sync wording
Runmake setup-dev-tools && helm-docs -c ./helmto update helm/cosmo/README.md and add the missingrouter.additionalPodLabelsentry (CI is failing due to this omission and wording drift).
🧹 Nitpick comments (3)
helm/cosmo/values.yaml (1)
23-27: Update stale comment for router.enabled (now true).Comment says “Disabled by default…” but default is true. Align to avoid confusion and incorrect generated docs.
Apply:
router: - # -- Disabled by default because we don't have a token yet + # -- Enabled by default; set to false if you don't have a router token yet enabled: truehelm/cosmo/README.md (1)
152-152: Description mismatch: “Disabled by default…” while value is true.This comes from values.yaml comments. Update the comment there (see suggested diff in helm/cosmo/values.yaml) and re-run helm-docs.
helm/cosmo/charts/router/templates/_helpers.tpl (1)
55-63: Optional: render labels in stable key order to reduce noisy diffs.Go map iteration order is non-deterministic. Sorting keys makes manifests stable in diffs.
Apply:
-{{- define "router.additionalPodLabels" -}} -{{- range $key, $value := .Values.additionalPodLabels }} -{{ $key }}: {{ quote $value }} -{{- end }} -{{- end }} +{{- define "router.additionalPodLabels" -}} +{{- $keys := keys .Values.additionalPodLabels | sortAlpha -}} +{{- range $key := $keys }} +{{ $key }}: {{ quote (index $.Values.additionalPodLabels $key) }} +{{- end }} +{{- end }}
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (7)
Makefile(1 hunks)helm/cosmo/README.md(1 hunks)helm/cosmo/charts/router/README.md(1 hunks)helm/cosmo/charts/router/templates/_helpers.tpl(1 hunks)helm/cosmo/charts/router/templates/deployment.yaml(1 hunks)helm/cosmo/charts/router/values.yaml(1 hunks)helm/cosmo/values.yaml(2 hunks)
🧰 Additional context used
🪛 GitHub Actions: Helm CI
helm/cosmo/charts/router/README.md
[error] 9-9: Diff detected by 'git diff --no-ext-diff --exit-code ./helm' affecting helm/cosmo/charts/router/README.md: updated description for 'additionalPodLabels' (from 'deployment pods' to 'deployment pod template').
helm/cosmo/README.md
[error] 241-241: Diff detected by 'git diff --no-ext-diff --exit-code ./helm' affecting helm/cosmo/README.md: added configuration line for 'router.additionalPodLabels'.
⏰ 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)
- GitHub Check: Analyze (go)
- GitHub Check: Analyze (javascript-typescript)
- GitHub Check: build_test
🔇 Additional comments (4)
helm/cosmo/charts/router/templates/deployment.yaml (1)
31-34: Pod-label injection LGTM.Correctly wires additional pod labels into template.metadata.labels with proper nindent.
helm/cosmo/charts/router/README.md (1)
11-12: Regenerate Helm docs: installhelm-docs, runhelm-docs -c ./helm, and commit the updated README to resolve the CI diff.helm/cosmo/values.yaml (1)
255-257: New router.additionalPodLabels default looks good.Public value added and documented; matches template usage.
helm/cosmo/charts/router/values.yaml (1)
17-22: Values keys and descriptions are clear and consistent.Distinguishing deployment metadata vs. pod template labels is accurate.
72909c5 to
71f7d1a
Compare
71f7d1a to
491069e
Compare
|
@coderabbitai summary |
✅ Actions performedSummary regeneration triggered. |
|
@coderabbitai summary |
✅ Actions performedSummary regeneration triggered. |
Summary by CodeRabbit
Checklist