wip: Kube-rs demo
This commit is contained in:
parent
04db8103c4
commit
42ed82b0c1
16
harmony-rs/demo/kube-rs/Cargo.toml
Normal file
16
harmony-rs/demo/kube-rs/Cargo.toml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
[package]
|
||||||
|
name = "test-kube-rs"
|
||||||
|
edition = "2024"
|
||||||
|
version.workspace = true
|
||||||
|
readme.workspace = true
|
||||||
|
license.workspace = true
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
harmony = { version = "0.1.0", path = "../../harmony" }
|
||||||
|
cidr = { workspace = true }
|
||||||
|
tokio = { workspace = true }
|
||||||
|
harmony_macros = { version = "1.0.0", path = "../../harmony_macros" }
|
||||||
|
log = { workspace = true }
|
||||||
|
env_logger = { workspace = true }
|
||||||
|
url = { workspace = true }
|
||||||
|
kube = "0.98.0"
|
||||||
8
harmony-rs/demo/kube-rs/src/main.rs
Normal file
8
harmony-rs/demo/kube-rs/src/main.rs
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
use kube::Client;
|
||||||
|
|
||||||
|
#[tokio::main]
|
||||||
|
async fn main() {
|
||||||
|
let client = Client::try_default().await.expect("Should instanciate client from defaults");
|
||||||
|
println!("apiserver_version {:?}", client.apiserver_version());
|
||||||
|
println!("Hello world");
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user