fix(base-cluster/rbac): whitespace trimming#1608
Conversation
WalkthroughThe change updates the whitespace control in Helm template delimiters within a YAML file. Only the placement of dashes in the Changes
Estimated code review effort1 (~2 minutes) Poem
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. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Pull Request Overview
This pull request fixes a whitespace/formatting issue in the RBAC service account template by correcting the indentation and trimming of template directives.
- Corrects the indentation of the
{{- end }}directive to align with proper YAML structure - Removes an incorrectly positioned
{{ end -}}directive that was causing formatting issues
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
charts/base-cluster/templates/rbac/accounts.yaml (1)
23-24: Consider keeping the right-side dash on theifclosing tag to suppress blank lines for skipped accountsWith
{{- end }}the newline after the closing tag is preserved.
For iterations where theifcondition is false (e.g. keys containing@), this results in an empty line being emitted for every skipped account.
While YAML tolerates blank lines, large value sets can lead to a noisy manifest and make diffing harder.A minimal tweak eliminates the surplus whitespace without affecting valid iterations:
- {{- end }} + {{- end -}}The outer
rangealready trims the trailing newline via{{ end -}}, so this change won’t re-introduce a final blank line at the end of the rendered file.
Pleasehelm templatethe chart with a mixedrbac.accountslist to verify the output.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
charts/base-cluster/templates/rbac/accounts.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). (3)
- GitHub Check: check licenses
- GitHub Check: lint helm chart (base-cluster)
- GitHub Check: wait-for-checks
🤖 I have created a release *beep* *boop* --- ## [8.2.1](base-cluster-v8.2.0...base-cluster-v8.2.1) (2025-07-24) ### Bug Fixes * **base-cluster/rbac:** whitespace trimming ([#1608](#1608)) ([4b028b4](4b028b4)) --- 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