From 95c2e1dd72ccf3b54f999a0e65569d2d6b6a75c3 Mon Sep 17 00:00:00 2001 From: Willem Date: Fri, 5 Sep 2025 11:16:51 -0400 Subject: [PATCH] fix:deploys namespaced grafana operator in all cases --- .../prometheus/k8s_prometheus_alerting_score.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/harmony/src/modules/prometheus/k8s_prometheus_alerting_score.rs b/harmony/src/modules/prometheus/k8s_prometheus_alerting_score.rs index 30bc8bd..1c0fb9d 100644 --- a/harmony/src/modules/prometheus/k8s_prometheus_alerting_score.rs +++ b/harmony/src/modules/prometheus/k8s_prometheus_alerting_score.rs @@ -197,11 +197,12 @@ impl K8sPrometheusCRDAlertingInterpret { } async fn ensure_grafana_operator(&self) -> Result { - if self.crd_exists("grafanas.grafana.integreatly.org").await { - debug!("grafana CRDs already exist — skipping install."); - return Ok(Outcome::success("Grafana CRDs already exist".to_string())); - } - + // if self.crd_exists("grafanas.grafana.integreatly.org").await { + // debug!("grafana CRDs already exist — skipping install."); + // return Ok(Outcome::success("Grafana CRDs already exist".to_string())); + // } + //may not need to check this since the grafana operator is namespaceScope=true -> it + //will deploy with rolebindings rather than cluster role bindings let _ = Command::new("helm") .args([ "repo",