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

macro kube-derive

Custom derives for the kube kubernetes crates

87 releases (breaking)

0.98.0 Dec 23, 2024
0.97.0 Nov 20, 2024
0.96.0 Oct 9, 2024
0.93.1 Jul 23, 2024
0.31.0 Mar 28, 2020

#1724 in Encoding

Download history 190727/week @ 2024-09-27 227756/week @ 2024-10-04 206136/week @ 2024-10-11 223133/week @ 2024-10-18 245570/week @ 2024-10-25 201806/week @ 2024-11-01 231496/week @ 2024-11-08 228460/week @ 2024-11-15 153444/week @ 2024-11-22 142731/week @ 2024-11-29 232785/week @ 2024-12-06 221609/week @ 2024-12-13 58445/week @ 2024-12-20 64527/week @ 2024-12-27 200222/week @ 2025-01-03 216260/week @ 2025-01-10

576,316 downloads per month
Used in 128 crates (19 directly)

Apache-2.0

62KB
932 lines

kube-derive

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

Installation

Add the derive feature to kube:

[dependencies]
kube = { version = "0.98.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–1.9MB
~40K SLoC