From 92a4c324fa82d55a33a36f1cbe2c0eac28d1d96a Mon Sep 17 00:00:00 2001 From: Jean-Gabriel Gill-Couture Date: Thu, 14 Aug 2025 15:00:58 -0400 Subject: [PATCH] chore: remove hardcoded ips for demo local deployment and work around logging issues with dynamic lib --- harmony/src/domain/topology/tenant/k8s.rs | 46 +++++++++++------------ harmony_cli/src/lib.rs | 5 ++- 2 files changed, 26 insertions(+), 25 deletions(-) diff --git a/harmony/src/domain/topology/tenant/k8s.rs b/harmony/src/domain/topology/tenant/k8s.rs index f2edb05..dd6870a 100644 --- a/harmony/src/domain/topology/tenant/k8s.rs +++ b/harmony/src/domain/topology/tenant/k8s.rs @@ -218,29 +218,29 @@ impl K8sTenantManager { } ] }, - { - "to": [ - { - "ipBlock": { - "cidr": "10.43.0.1/32", - } - } - ] - }, - { - "to": [ - { - //TODO this ip is from the docker network that k3d is running on - //since k3d does not deploy kube-api-server as a pod it needs to ahve the ip - //address opened up - //need to find a way to automatically detect the ip address from the docker - //network - "ipBlock": { - "cidr": "172.18.0.0/16", - } - } - ] - }, + // { + // "to": [ + // { + // "ipBlock": { + // "cidr": "10.43.0.1/32", + // } + // } + // ] + // }, + // { + // "to": [ + // { + // //TODO this ip is from the docker network that k3d is running on + // //since k3d does not deploy kube-api-server as a pod it needs to ahve the ip + // //address opened up + // //need to find a way to automatically detect the ip address from the docker + // //network + // "ipBlock": { + // "cidr": "172.18.0.0/16", + // } + // } + // ] + // }, { "to": [ { diff --git a/harmony_cli/src/lib.rs b/harmony_cli/src/lib.rs index 11ac572..711a709 100644 --- a/harmony_cli/src/lib.rs +++ b/harmony_cli/src/lib.rs @@ -132,8 +132,9 @@ async fn init( // if list option is specified, print filtered list and exit if args.list { - println!("Available scores:"); - println!("{}", list_scores_with_index(&scores_vec)); + let num_scores = scores_vec.len(); + println!("Available scores {num_scores}:"); + println!("{}\n\n", list_scores_with_index(&scores_vec)); return Ok(()); }