Switch HAClusterTopology for K8sAnywhereTopology in lamp example

This commit is contained in:
2025-04-23 10:15:51 -04:00
parent 452ebc2614
commit 0857aba039
2 changed files with 15 additions and 9 deletions

View File

@@ -1,9 +1,8 @@
use harmony::{
data::Version,
inventory::Inventory,
maestro::Maestro,
modules::lamp::{LAMPConfig, LAMPScore},
topology::{HAClusterTopology, Url},
topology::{K8sAnywhereTopology, Url},
};
#[tokio::main]
@@ -18,9 +17,7 @@ async fn main() {
},
};
let inventory = Inventory::autoload();
let topology = HAClusterTopology::autoload();
let mut maestro = Maestro::new(inventory, topology);
let maestro = Maestro::<K8sAnywhereTopology>::load_from_env();
maestro.register_all(vec![Box::new(lamp_stack)]);
harmony_tui::init(maestro).await.unwrap();
}