Skip to content

Commit

Permalink
fix(alerts template): ensure lowercase RFC 1123
Browse files Browse the repository at this point in the history
  • Loading branch information
richardtief committed Oct 9, 2024
1 parent dba7084 commit 7c58829
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.9
version: 0.0.10
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/alerts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
name: {{ printf "%s-%s" $.Release.Name $path | replace "/" "-" | trunc 63 | trimSuffix ".alerts.tpl" }}
name: {{ printf "%s-%s" $.Release.Name $path | replace "/" "-" | replace "." "-" | trimSuffix "-tpl" | replace "-alerts-" "-" | trunc 63 }}
labels:
{{ include "kubernetes-operations.ruleSelectorLabels" (list $path $root) | indent 4 }}
{{ include "kubernetes-operations.labels" (list $path $root) | indent 4 }}
Expand Down

0 comments on commit 7c58829

Please sign in to comment.