Skip to content

Commit

Permalink
fix(template): use correct variable
Browse files Browse the repository at this point in the history
  • Loading branch information
richardtief committed Oct 16, 2024
1 parent 70d429c commit 16a3db4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/kubernetes-operations/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

apiVersion: v2
name: kubernetes-operations
version: 0.0.10
version: 0.0.11
description: A set of Plutono dashboards and Prometheus alerting rules combined with playbooks to ensure effective operations of Kubernetes.
maintainers:
- name: Richard Tief (I520251)
Expand Down
2 changes: 1 addition & 1 deletion charts/kubernetes-operations/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ app.kubernetes.io/part-of: {{ $root.Release.Name }}
plugin: {{ $root.Release.Name }}
{{- if $root.Values.prometheusRules.ruleSelectors }}
{{- range $i, $target := $root.Values.prometheusRules.ruleSelectors }}
{{ $target.name | required (printf "$.Values.prometheusRules.ruleSelector.[%v].name missing" $i) }}: {{ tpl ($target.value | required (printf "$.Values.prometheusRules.ruleSelector.[%v].value missing" $i)) $ }}
{{ $target.name | required (printf "$.Values.prometheusRules.ruleSelector.[%v].name missing" $i) }}: {{ tpl ($target.value | required (printf "$.Values.prometheusRules.ruleSelector.[%v].value missing" $i)) $root }}
{{- end }}
{{- end }}
{{- end }}
Expand Down

0 comments on commit 16a3db4

Please sign in to comment.