From 5240904db6c0f2cc2cbecfa8904457ae6ee2f091 Mon Sep 17 00:00:00 2001 From: Luca Burgazzoli Date: Wed, 22 Jan 2025 09:27:05 +0100 Subject: [PATCH] fix: use Monitoring.Spec.Namespace instead of the DSCI one This reduce the direct dependency from Monitoring to DSCI --- .../services/monitoring/monitoring_controller_actions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/services/monitoring/monitoring_controller_actions.go b/controllers/services/monitoring/monitoring_controller_actions.go index 03b6bd439429..fc334543694c 100644 --- a/controllers/services/monitoring/monitoring_controller_actions.go +++ b/controllers/services/monitoring/monitoring_controller_actions.go @@ -119,7 +119,7 @@ func updateStatus(ctx context.Context, rr *odhtypes.ReconciliationRequest) error err := rr.Client.List( ctx, promDeployment, - client.InNamespace(rr.DSCI.Spec.Monitoring.Namespace), + client.InNamespace(m.Spec.Namespace), ) if err != nil { return fmt.Errorf("error fetching promethus deployments: %w", err)