use new harmony_cli::run
All checks were successful
Run Check Script / check (pull_request) Successful in -44s
All checks were successful
Run Check Script / check (pull_request) Successful in -44s
This commit is contained in:
parent
569839bf66
commit
5cc93d3107
@ -19,12 +19,6 @@ use harmony::{
|
|||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn 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
|
//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
|
//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
|
//in order for the application to be deployed in the tenant namespace the application.name and
|
||||||
@ -56,6 +50,12 @@ async fn main() {
|
|||||||
application,
|
application,
|
||||||
};
|
};
|
||||||
|
|
||||||
maestro.register_all(vec![Box::new(tenant), Box::new(app)]);
|
harmony_cli::run(
|
||||||
harmony_cli::init(maestro, None).await.unwrap();
|
Inventory::autoload(),
|
||||||
|
K8sAnywhereTopology::from_env(),
|
||||||
|
vec![Box::new(tenant), Box::new(app)],
|
||||||
|
None,
|
||||||
|
)
|
||||||
|
.await
|
||||||
|
.unwrap();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user