#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

#1728 in Encoding

Download history 230709/week @ 2024-10-26 216244/week @ 2024-11-02 234778/week @ 2024-11-09 215537/week @ 2024-11-16 135002/week @ 2024-11-23 155639/week @ 2024-11-30 255117/week @ 2024-12-07 197145/week @ 2024-12-14 44194/week @ 2024-12-21 89201/week @ 2024-12-28 212623/week @ 2025-01-04 254682/week @ 2025-01-11 184590/week @ 2025-01-18 227888/week @ 2025-01-25 258602/week @ 2025-02-01 283140/week @ 2025-02-08

997,158 downloads per month
Used in 130 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