From f178e044efbe4542a571921dd4faa04b065c127d Mon Sep 17 00:00:00 2001 From: Simon Beck Date: Tue, 3 Dec 2024 13:32:53 +0100 Subject: [PATCH] Fix config for maintenance object --- cmd/sliexporter.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/sliexporter.go b/cmd/sliexporter.go index 52539bc02..32499c790 100644 --- a/cmd/sliexporter.go +++ b/cmd/sliexporter.go @@ -101,7 +101,7 @@ func (s *sliProber) executeSLIProber(cmd *cobra.Command, _ []string) error { } if utils.IsKindAvailable(vshnv1.GroupVersion, "XVSHNPostgreSQL", ctrl.GetConfigOrDie()) { - log.Info("Enabling VSHNKeycloak controller") + log.Info("Enabling VSHNPostgreSQL controller") if err = (&vshnpostgresqlcontroller.VSHNPostgreSQLReconciler{ Client: mgr.GetClient(), Scheme: mgr.GetScheme(), @@ -154,7 +154,7 @@ func (s *sliProber) executeSLIProber(cmd *cobra.Command, _ []string) error { } } - if utils.IsKindAvailable(managedupgradev1beta1.GroupVersion, "UpgradeJob", ctrl.GetConfigOrDie()) { + if utils.IsKindAvailable(managedupgradev1beta1.GroupVersion, "UpgradeJob", config) { log.Info("Enable OC maintenance observer") serviceCluster, err := getServiceCluster() if err != nil {