Registry / cloud / k8s-openapi

k8s-openapi

JSON →
library0.28.0rscratesunverified

Bindings for the Kubernetes client API

# Cargo.toml [dependencies] k8s-openapi = "0.28.0"
INSTALL
IMPORT
SIG · K8S-OPENAPI
K
k8s-openapi
cloudrustv0.28.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.

Pod
use k8s_openapi::api::core::v1::Pod;

Create a Kubernetes Pod object using the API bindings

use k8s_openapi::api::core::v1::Pod; use k8s_openapi::apimachinery::pkg::apis::meta::v1::ObjectMeta; let pod = Pod { metadata: ObjectMeta { name: Some("my-pod".to_string()), ..Default::default() }, spec: Some(Default::default()), ..Default::default() };
Debug
Known issues
gotchaRequires a feature flag for the Kubernetes version (e.g., `v1_28`)
fix
Add `features = ["v1_28"]` to Cargo.toml dependency
affects: >=0.28.0
Upgrade
Version history
0.28.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

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