Skip to content

fix(templates): additional RuleLabels indent fix#46

Merged
trouaux merged 3 commits into
mainfrom
fix-additionalRuleLabels
Jun 1, 2026
Merged

fix(templates): additional RuleLabels indent fix#46
trouaux merged 3 commits into
mainfrom
fix-additionalRuleLabels

Conversation

@trouaux

@trouaux trouaux commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings June 1, 2026 10:29
@trouaux trouaux requested a review from a team as a code owner June 1, 2026 10:29
Signed-off-by: trouaux <thomas.rouaux@sap.com>
@trouaux trouaux force-pushed the fix-additionalRuleLabels branch from b3381a6 to 64c7bba Compare June 1, 2026 10:30

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts how additionalRuleLabels are rendered in the Helm chart so that label maps are indented correctly when injected into Prometheus alert rule YAML, and bumps the chart patch version accordingly.

Changes:

  • Update additionalRuleLabels helper to return unindented YAML so callers can control indentation consistently.
  • Normalize alert rule templates to include additionalRuleLabels via nindent 6 at the call site.
  • Bump chart version from 1.2.10 to 1.2.11.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
charts/kubernetes-operations/templates/_helpers.tpl Removes internal indentation from additionalRuleLabels output to avoid double-indenting when included.
charts/kubernetes-operations/Chart.yaml Patch version bump to reflect template fix release.
charts/kubernetes-operations/alerts/kubernetes-node.yaml Moves additionalRuleLabels include to a consistent indentation pattern under labels:.
charts/kubernetes-operations/alerts/kubernetes-kubelet.yaml Same indentation normalization for injected rule labels.
charts/kubernetes-operations/alerts/kubernetes-health.yaml Same indentation normalization for injected rule labels.
charts/kubernetes-operations/alerts/kubernetes-apiserver.yaml Same indentation normalization for injected rule labels.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread charts/kubernetes-operations/alerts/kubernetes-node.yaml Outdated
Comment thread charts/kubernetes-operations/alerts/kubernetes-node.yaml Outdated
Comment thread charts/kubernetes-operations/alerts/kubernetes-kubelet.yaml Outdated
Comment thread charts/kubernetes-operations/alerts/kubernetes-apiserver.yaml Outdated
Comment thread charts/kubernetes-operations/alerts/kubernetes-node.yaml Outdated
Comment thread charts/kubernetes-operations/alerts/kubernetes-node.yaml Outdated
Comment thread charts/kubernetes-operations/alerts/kubernetes-kubelet.yaml Outdated
Comment thread charts/kubernetes-operations/alerts/kubernetes-apiserver.yaml
Comment thread charts/kubernetes-operations/alerts/kubernetes-apiserver.yaml Outdated
Comment thread charts/kubernetes-operations/alerts/kubernetes-health.yaml Outdated
Signed-off-by: trouaux <thomas.rouaux@sap.com>
@trouaux trouaux force-pushed the fix-additionalRuleLabels branch from 0394165 to 4ab7dc9 Compare June 1, 2026 13:45
@trouaux trouaux merged commit 5231267 into main Jun 1, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants