fix:deploys namespaced grafana operator in all cases
Some checks failed
Run Check Script / check (pull_request) Failing after -4s

This commit is contained in:
Willem 2025-09-05 11:16:51 -04:00
parent 85d7baac6c
commit 95c2e1dd72

View File

@ -197,11 +197,12 @@ impl K8sPrometheusCRDAlertingInterpret {
}
async fn ensure_grafana_operator(&self) -> Result<Outcome, InterpretError> {
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",