21 lines
537 B
Rust
21 lines
537 B
Rust
/// 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 {
|
|
}
|