fix: Initialize K3DInstallationScore correctly

This commit is contained in:
Jean-Gabriel Gill-Couture 2025-04-18 23:45:40 -04:00
parent 2229e9d7af
commit 83ba0e1044
2 changed files with 8 additions and 2 deletions

View File

@ -41,8 +41,8 @@ impl K8sAnywhereTopology {
async fn try_install_k3d(&self) -> Result<K8sClient, InterpretError> {
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"
);

View File

@ -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<T: Topology> Score<T> for K3DInstallationScore {
fn create_interpret(&self) -> Box<dyn crate::interpret::Interpret<T>> {
todo!("