From 7c58829520f7e4011b380b162e6e9168133339fc Mon Sep 17 00:00:00 2001 From: Richard Tief Date: Wed, 9 Oct 2024 15:03:07 +0200 Subject: [PATCH] fix(alerts template): ensure lowercase RFC 1123 --- charts/kubernetes-operations/Chart.yaml | 2 +- charts/kubernetes-operations/templates/alerts.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/kubernetes-operations/Chart.yaml b/charts/kubernetes-operations/Chart.yaml index db04386..641988f 100644 --- a/charts/kubernetes-operations/Chart.yaml +++ b/charts/kubernetes-operations/Chart.yaml @@ -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) diff --git a/charts/kubernetes-operations/templates/alerts.yaml b/charts/kubernetes-operations/templates/alerts.yaml index 8088b58..7242ebc 100644 --- a/charts/kubernetes-operations/templates/alerts.yaml +++ b/charts/kubernetes-operations/templates/alerts.yaml @@ -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 }}