kube-rs / gateway-api-rs

Kubernetes Gateway API bindings for Rust
https://docs.rs/crate/gateway-api/latest
MIT License
23 stars 9 forks source link

Add gateway_api::Duration type to support GEP-2257 Durations #45

Closed kflynn closed 2 months ago

kflynn commented 2 months ago

gateway_api::Duration is a duration type where parsing and formatting obey GEP-2257. This PR adds the type, unit tests, and an example.

Reviewers: reviewing commit by commit might be helpful, but unlike most of my PRs, it's really not that big a deal this time around.

(Many thanks to @shaneutt and @the-wondersmith for answering Rust questions. :joy:)

Signed-off-by: Flynn emissary@flynn.kodachi.com

the-wondersmith commented 2 months ago

(Many thanks to ...