fix: Initialize K3DInstallationScore correctly
This commit is contained in:
parent
2229e9d7af
commit
83ba0e1044
@ -41,8 +41,8 @@ impl K8sAnywhereTopology {
|
|||||||
|
|
||||||
async fn try_install_k3d(&self) -> Result<K8sClient, InterpretError> {
|
async fn try_install_k3d(&self) -> Result<K8sClient, InterpretError> {
|
||||||
let maestro = Maestro::new(Inventory::autoload(), LocalhostTopology::new());
|
let maestro = Maestro::new(Inventory::autoload(), LocalhostTopology::new());
|
||||||
let k3d_score = K3DInstallationScore::default();
|
let k3d_score = K3DInstallationScore::new();
|
||||||
maestro.interpret(Box::new(k3d_score)).await;
|
maestro.interpret(Box::new(k3d_score)).await?;
|
||||||
todo!(
|
todo!(
|
||||||
"Create Maestro with LocalDockerTopology or something along these lines and run a K3dInstallationScore on it"
|
"Create Maestro with LocalDockerTopology or something along these lines and run a K3dInstallationScore on it"
|
||||||
);
|
);
|
||||||
|
|||||||
@ -5,6 +5,12 @@ use crate::{score::Score, topology::Topology};
|
|||||||
#[derive(Debug, Clone, Serialize)]
|
#[derive(Debug, Clone, Serialize)]
|
||||||
pub struct K3DInstallationScore {}
|
pub struct K3DInstallationScore {}
|
||||||
|
|
||||||
|
impl K3DInstallationScore {
|
||||||
|
pub fn new() -> Self {
|
||||||
|
Self {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl<T: Topology> Score<T> for K3DInstallationScore {
|
impl<T: Topology> Score<T> for K3DInstallationScore {
|
||||||
fn create_interpret(&self) -> Box<dyn crate::interpret::Interpret<T>> {
|
fn create_interpret(&self) -> Box<dyn crate::interpret::Interpret<T>> {
|
||||||
todo!("
|
todo!("
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user