Skip to content

Commit

Permalink
Fix config for maintenance object
Browse files Browse the repository at this point in the history
  • Loading branch information
Kidswiss committed Dec 3, 2024
1 parent 4078afb commit f178e04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/sliexporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit f178e04

Please sign in to comment.