wip: argocd discovery
Some checks failed
Run Check Script / check (pull_request) Failing after 17s

This commit is contained in:
Jean-Gabriel Gill-Couture 2025-10-14 21:15:22 -04:00
parent 69a159711a
commit 2b105b280d
3 changed files with 23 additions and 0 deletions

View File

@ -58,6 +58,7 @@ impl<T: Topology + K8sclient + HelmCommand + Ingress> Interpret<T> for ArgoInter
let svc = format!("argo-{}", self.score.namespace.clone());
let domain = topology.get_domain(&svc).await?;
// FIXME we now have a way to know if we're running on openshift family
let helm_score =
argo_helm_chart_score(&self.score.namespace, self.score.openshift, &domain);

View File

@ -0,0 +1,20 @@
/// Discover the current ArgoCD setup
///
/// 1. No argo installed
/// 2. Argo installed in current namespace
/// 3. Argo installed in different namespace (assuming cluster wide access)
///
/// For now we will go ahead with this very basic logic, there are many intricacies that can be
/// dealt with later, such as multitenant management in a single argo instance, credentials setup t
#[async_trait]
pub trait ArgoCD {
async fn ensure_installed() {
}
}
struct CurrentNamespaceArgo;
impl ArgoCD for CurrentNamespaceArgo {
}

View File

@ -0,0 +1,2 @@
mod discover;
pub use discover::*;