Registry / cloud / kube-runtime

kube-runtime

JSON →
library3.1.0rscratesunverified

Kubernetes controller runtime for building operators and controllers in Rust.

# Cargo.toml [dependencies] kube-runtime = "3.1.0"
INSTALL
IMPORT
SIG · KUBE-RUNTIME
K
kube-runtime
cloudrustv3.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Controller
use kube_runtime::Controller;

Sets up a basic Kubernetes controller using the kube-runtime crate.

use kube::Client; use kube_runtime::Controller; use futures::StreamExt; #[tokio::main] async fn main() -> Result<(), Box<dyn std::error::Error>> { let client = Client::try_default().await?; let controller = Controller::new(client); // Further configuration and run logic here Ok(()) }
Debug
Known issues
gotchaRequires an async runtime like Tokio to run.
fix
Add tokio as a dependency and use #[tokio::main] or similar.
affects: >=0.1.0
Upgrade
Version history
3.1.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
OpenAI (training)
1
Resources
kube-runtime — cargo add kube-runtime · libregistry