Skip to content

Commit

Permalink
fix: use Monitoring.Spec.Namespace instead of the DSCI one (opendatah…
Browse files Browse the repository at this point in the history
…ub-io#1540)

This reduce the direct dependency from Monitoring to DSCI
  • Loading branch information
lburgazzoli authored Jan 22, 2025
1 parent 2258161 commit 5321b8c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5321b8c

Please sign in to comment.