Merge pull request 'refactor(topo/k8s_anywhere): simplify local installation of k3d' (#90) from simply-k3d-installation into master
Reviewed-on: https://git.nationtech.io/NationTech/harmony/pulls/90 Reviewed-by: wjro <wrolleman@nationtech.io>
This commit is contained in:
		
						commit
						1ab66af718
					
				| @ -10,9 +10,8 @@ use crate::{ | ||||
|     executors::ExecutorError, | ||||
|     interpret::{InterpretError, Outcome}, | ||||
|     inventory::Inventory, | ||||
|     maestro::Maestro, | ||||
|     modules::k3d::K3DInstallationScore, | ||||
|     topology::LocalhostTopology, | ||||
|     score::Score, | ||||
| }; | ||||
| 
 | ||||
| use super::{ | ||||
| @ -114,9 +113,10 @@ impl K8sAnywhereTopology { | ||||
|     } | ||||
| 
 | ||||
|     async fn try_install_k3d(&self) -> Result<(), InterpretError> { | ||||
|         let maestro = Maestro::initialize(Inventory::autoload(), LocalhostTopology::new()).await?; | ||||
|         let k3d_score = self.get_k3d_installation_score(); | ||||
|         maestro.interpret(Box::new(k3d_score)).await?; | ||||
|         self.get_k3d_installation_score() | ||||
|             .create_interpret() | ||||
|             .execute(&Inventory::empty(), self) | ||||
|             .await?; | ||||
|         Ok(()) | ||||
|     } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user