#kubernetes #crd #macro #api-bindings #customresource

macro kube-derive

Custom derives for the kube kubernetes crates

85 releases (breaking)

0.96.0 Oct 9, 2024
0.94.2 Sep 13, 2024
0.93.1 Jul 23, 2024
0.89.0 Mar 26, 2024
0.31.0 Mar 28, 2020

#1739 in Encoding

Download history 66457/week @ 2024-07-18 66835/week @ 2024-07-25 74964/week @ 2024-08-01 158645/week @ 2024-08-08 172103/week @ 2024-08-15 177938/week @ 2024-08-22 158665/week @ 2024-08-29 183221/week @ 2024-09-05 179938/week @ 2024-09-12 186383/week @ 2024-09-19 193784/week @ 2024-09-26 218384/week @ 2024-10-03 210556/week @ 2024-10-10 221261/week @ 2024-10-17 241379/week @ 2024-10-24 200971/week @ 2024-10-31

926,313 downloads per month
Used in 119 crates (16 directly)

Apache-2.0

47KB
624 lines

kube-derive

Add #[derive(CustomResource)] to your custom resource struct.

Installation

Add the derive feature to kube:

[dependencies]
kube = { version = "0.96.0", feature = ["derive"] }

Usage

See the kube-derive API Docs

Examples

See the crd_ prefixed examples for more.

Development

Help very welcome! Kubebuilder like features, testing improvement, openapi feature. See https://github.com/kube-rs/kube/labels/derive


lib.rs:

A crate for kube's derive macros.

Dependencies

~1–2MB
~41K SLoC