From 7e3a623c10c67aee66fcfb6b4c13313eda11746d Mon Sep 17 00:00:00 2001 From: Theo Brigitte Date: Sun, 15 Dec 2024 22:42:00 +0100 Subject: [PATCH] fix reconciled object: Secret --- internal/controller/alertmanager_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/controller/alertmanager_controller.go b/internal/controller/alertmanager_controller.go index 89488104..6354a2d2 100644 --- a/internal/controller/alertmanager_controller.go +++ b/internal/controller/alertmanager_controller.go @@ -46,7 +46,7 @@ func SetupAlertmanagerReconciler(mgr ctrl.Manager, conf config.Config) error { // Setup the controller return ctrl.NewControllerManagedBy(mgr). - For(&v1.ConfigMap{}, builder.WithPredicates(secretPredicate)). + For(&v1.Secret{}, builder.WithPredicates(secretPredicate)). Watches(&v1.Pod{}, p, builder.WithPredicates(podPredicate)). Complete(r) }