Kubernetes Gateway API bindings for Rust
https://docs.rs/crate/gateway-api/latest โ// momentum
// why it's here
- Active: last commit today
- Built almost entirely by one person
- Health 96/100 with only 54 stars
- 28 forks for 54 stars: people build on it
// how to help
// readme
Gateway API (Rust)
Kubernetes Gateway API support for Rust.
Note: Currently supports Gateway API version v1.7.0
Usage
Requires a kube-rs Client to perform create, read, update and delete (CRUD) operations on Gateway API resources.
use gateway_api::httproutes::HttpRoute;
use kube::{Api, Client, ResourceExt, api::ListParams};
let client = Client::try_default().await?;
let routes: Api<HttpRoute> = Api::default_namespaced(client);
for route in routes.list(&ListParams::default()).await? {
println!("{}", route.name_any());
}
API versions
Every API version a CRD defines is available as a submodule of the resource
module. The module root re-exports the primary version (usually v1):