Add #[derive(CustomResource)]
to your custom resource struct.
Add the derive
feature to kube
:
[dependencies]
kube = { version = "0.80.0", feature = ["derive"] }
See the kube-derive API Docs
See the crd_
prefixed examples for more.
Help very welcome! Kubebuilder like features, testing improvement, openapi feature. See https://github.com/kube-rs/kube/labels/derive