fix/grafana-operator #132

Merged
letian merged 9 commits from fix/grafana-operator into master 2025-09-08 13:59:13 +00:00
5 changed files with 15 additions and 22 deletions
Showing only changes of commit 95c2e1dd72 - Show all commits

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",