From e5fedd697cc5ad1c2f16773831fcb14f1622bcd8 Mon Sep 17 00:00:00 2001 From: Carolin Dohmen Date: Fri, 9 Feb 2024 17:03:45 +0100 Subject: [PATCH] Use correct label name for ServiceMonitor jobLabel field Signed-off-by: Carolin Dohmen --- pkg/controller/vault/vault_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controller/vault/vault_controller.go b/pkg/controller/vault/vault_controller.go index 2978ae40..a0f602ca 100644 --- a/pkg/controller/vault/vault_controller.go +++ b/pkg/controller/vault/vault_controller.go @@ -652,7 +652,7 @@ func serviceMonitorForVault(v *vaultv1alpha1.Vault) *monitorv1.ServiceMonitor { Labels: ls, }, Spec: monitorv1.ServiceMonitorSpec{ - JobLabel: v.Name, + JobLabel: "vault_cr", Selector: metav1.LabelSelector{ MatchLabels: ls, MatchExpressions: []metav1.LabelSelectorRequirement{