From 83ba0e104498befc5ca63ea77575832d5c5fd76b Mon Sep 17 00:00:00 2001 From: Jean-Gabriel Gill-Couture Date: Fri, 18 Apr 2025 23:45:40 -0400 Subject: [PATCH] fix: Initialize K3DInstallationScore correctly --- harmony/src/domain/topology/k8s_anywhere.rs | 4 ++-- harmony/src/modules/k3d/install.rs | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/harmony/src/domain/topology/k8s_anywhere.rs b/harmony/src/domain/topology/k8s_anywhere.rs index 9eb4837..2ba5a72 100644 --- a/harmony/src/domain/topology/k8s_anywhere.rs +++ b/harmony/src/domain/topology/k8s_anywhere.rs @@ -41,8 +41,8 @@ impl K8sAnywhereTopology { async fn try_install_k3d(&self) -> Result { let maestro = Maestro::new(Inventory::autoload(), LocalhostTopology::new()); - let k3d_score = K3DInstallationScore::default(); - maestro.interpret(Box::new(k3d_score)).await; + let k3d_score = K3DInstallationScore::new(); + maestro.interpret(Box::new(k3d_score)).await?; todo!( "Create Maestro with LocalDockerTopology or something along these lines and run a K3dInstallationScore on it" ); diff --git a/harmony/src/modules/k3d/install.rs b/harmony/src/modules/k3d/install.rs index 386120f..6cd2bf9 100644 --- a/harmony/src/modules/k3d/install.rs +++ b/harmony/src/modules/k3d/install.rs @@ -5,6 +5,12 @@ use crate::{score::Score, topology::Topology}; #[derive(Debug, Clone, Serialize)] pub struct K3DInstallationScore {} +impl K3DInstallationScore { + pub fn new() -> Self { + Self {} + } +} + impl Score for K3DInstallationScore { fn create_interpret(&self) -> Box> { todo!("