From 7d5184520c14f1dacf88f31a5601de7ed8e649c0 Mon Sep 17 00:00:00 2001 From: Jeremy Lardenois Date: Mon, 24 Apr 2023 16:39:46 +0200 Subject: [PATCH 1/2] docs: pass workloads examples to v1 --- docs/src/examples/workloads/workload-1.json | 2 +- docs/src/examples/workloads/workload-2.json | 2 +- docs/src/examples/workloads/workload-3.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/src/examples/workloads/workload-1.json b/docs/src/examples/workloads/workload-1.json index 956a73bb..c14bb224 100644 --- a/docs/src/examples/workloads/workload-1.json +++ b/docs/src/examples/workloads/workload-1.json @@ -1,5 +1,5 @@ { - "api_version": "v0", + "apiVersion": "v1", "kind": "Pod", "name": "alpine", "replicas": 1, diff --git a/docs/src/examples/workloads/workload-2.json b/docs/src/examples/workloads/workload-2.json index d711f38d..d24e20e5 100644 --- a/docs/src/examples/workloads/workload-2.json +++ b/docs/src/examples/workloads/workload-2.json @@ -1,5 +1,5 @@ { - "api_version": "v0", + "apiVersion": "v1", "kind": "Pod", "name": "2-distro", "replicas": 1, diff --git a/docs/src/examples/workloads/workload-3.json b/docs/src/examples/workloads/workload-3.json index 0432a289..32d9a283 100644 --- a/docs/src/examples/workloads/workload-3.json +++ b/docs/src/examples/workloads/workload-3.json @@ -1,5 +1,5 @@ { - "api_version": "v0", + "apiVersion": "v1", "kind": "Pod", "name": "replicated", "replicas": 3, From f18eeb3f03cdff56646bf5e6739cc709d9e0818a Mon Sep 17 00:00:00 2001 From: Jeremy Lardenois Date: Mon, 24 Apr 2023 17:09:41 +0200 Subject: [PATCH 2/2] fix: make the riklet ok when a pod instance is created --- riklet/src/runtime/network/pod_network.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/riklet/src/runtime/network/pod_network.rs b/riklet/src/runtime/network/pod_network.rs index 4fb9663c..cf9346a0 100644 --- a/riklet/src/runtime/network/pod_network.rs +++ b/riklet/src/runtime/network/pod_network.rs @@ -1,3 +1,4 @@ +use anyhow::Ok; use async_trait::async_trait; use std::fmt::Debug; @@ -15,10 +16,12 @@ impl PodRuntimeNetwork { #[async_trait] impl RuntimeNetwork for PodRuntimeNetwork { async fn init(&mut self) -> Result<()> { - todo!() + // todo!() + Result::Ok(()) } async fn destroy(&self) -> Result<()> { - todo!() + // todo!() + Result::Ok(()) } }