From 52363a1dbc404f9961412739250f79f0f5637a35 Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Tue, 28 Apr 2026 17:53:08 -0500 Subject: [PATCH] fix: invalid rules --- charts/volsync-target/Chart.yaml | 2 +- charts/volsync-target/README.md | 2 +- charts/volsync-target/templates/prometheus-rule.yaml | 7 ++----- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/charts/volsync-target/Chart.yaml b/charts/volsync-target/Chart.yaml index a424d76..559bba7 100644 --- a/charts/volsync-target/Chart.yaml +++ b/charts/volsync-target/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: volsync-target -version: 1.1.0 +version: 1.1.1 description: Volsync Replication set to target specific PVC with preconfigured settings keywords: - volsync-target diff --git a/charts/volsync-target/README.md b/charts/volsync-target/README.md index 70e9f11..aa810ee 100644 --- a/charts/volsync-target/README.md +++ b/charts/volsync-target/README.md @@ -1,6 +1,6 @@ # volsync-target -![Version: 1.1.0](https://img.shields.io/badge/Version-1.1.0-informational?style=flat-square) ![AppVersion: 0.15.0](https://img.shields.io/badge/AppVersion-0.15.0-informational?style=flat-square) +![Version: 1.1.1](https://img.shields.io/badge/Version-1.1.1-informational?style=flat-square) ![AppVersion: 0.15.0](https://img.shields.io/badge/AppVersion-0.15.0-informational?style=flat-square) Volsync Replication set to target specific PVC with preconfigured settings diff --git a/charts/volsync-target/templates/prometheus-rule.yaml b/charts/volsync-target/templates/prometheus-rule.yaml index dd8249b..a26fe88 100644 --- a/charts/volsync-target/templates/prometheus-rule.yaml +++ b/charts/volsync-target/templates/prometheus-rule.yaml @@ -17,12 +17,9 @@ spec: rules: - alert: VolSyncBackupPodFailed expr: | - kube_pod_container_status_last_terminated_exit_code > 0 + (kube_pod_container_status_last_terminated_exitcode > 0) * on(pod, namespace) group_left(owner_name) - label_replace( - kube_pod_owner{owner_kind="Job"}, - "owner_name", "$1", "owner_name", "(.*)" - ) + kube_pod_owner{owner_kind="Job", owner_name=~"volsync-.*"} for: 1m labels: severity: critical