wip: Kube-rs demo

This commit is contained in:
jeangab 2025-01-16 16:13:48 -05:00
parent 04db8103c4
commit 42ed82b0c1
2 changed files with 24 additions and 0 deletions

View 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"

View 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");
}