From 5cc93d3107823b60fb86d686e924189257be9bdd Mon Sep 17 00:00:00 2001 From: Ian Letourneau Date: Mon, 4 Aug 2025 17:22:08 -0400 Subject: [PATCH] use new harmony_cli::run --- .../src/main.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/application_monitoring_with_tenant/src/main.rs b/examples/application_monitoring_with_tenant/src/main.rs index 27bc873..2f10b36 100644 --- a/examples/application_monitoring_with_tenant/src/main.rs +++ b/examples/application_monitoring_with_tenant/src/main.rs @@ -19,12 +19,6 @@ use harmony::{ #[tokio::main] async fn main() { - env_logger::init(); - - let topology = K8sAnywhereTopology::from_env(); - let mut maestro = Maestro::initialize(Inventory::autoload(), topology) - .await - .unwrap(); //TODO there is a bug where the application is deployed into the namespace matching the //application name and the tenant is created in the namesapce matching the tenant name //in order for the application to be deployed in the tenant namespace the application.name and @@ -56,6 +50,12 @@ async fn main() { application, }; - maestro.register_all(vec![Box::new(tenant), Box::new(app)]); - harmony_cli::init(maestro, None).await.unwrap(); + harmony_cli::run( + Inventory::autoload(), + K8sAnywhereTopology::from_env(), + vec![Box::new(tenant), Box::new(app)], + None, + ) + .await + .unwrap(); }