refactor(topo/k8s_anywhere): simplify local installation of k3d #90

Merged
letian merged 1 commits from simply-k3d-installation into master 2025-07-31 13:22:28 +00:00
Showing only changes of commit 0fff4ef566 - Show all commits

View File

@ -10,9 +10,8 @@ use crate::{
executors::ExecutorError, executors::ExecutorError,
interpret::{InterpretError, Outcome}, interpret::{InterpretError, Outcome},
inventory::Inventory, inventory::Inventory,
maestro::Maestro,
modules::k3d::K3DInstallationScore, modules::k3d::K3DInstallationScore,
topology::LocalhostTopology, score::Score,
}; };
use super::{ use super::{
@ -114,9 +113,10 @@ impl K8sAnywhereTopology {
} }
async fn try_install_k3d(&self) -> Result<(), InterpretError> { async fn try_install_k3d(&self) -> Result<(), InterpretError> {
let maestro = Maestro::initialize(Inventory::autoload(), LocalhostTopology::new()).await?; self.get_k3d_installation_score()
let k3d_score = self.get_k3d_installation_score(); .create_interpret()
maestro.interpret(Box::new(k3d_score)).await?; .execute(&Inventory::empty(), self)
.await?;
Ok(()) Ok(())
} }