Skip to content

Conversation

@Fredi-raspall
Copy link
Contributor

No description provided.

@Fredi-raspall Fredi-raspall requested a review from a team as a code owner January 7, 2026 13:02
@Fredi-raspall Fredi-raspall requested review from sergeymatov and removed request for a team January 7, 2026 13:02
@Fredi-raspall Fredi-raspall force-pushed the pr/fredi/k8s-samples branch 3 times, most recently from 830e863 to a36799b Compare January 7, 2026 14:17
@Fredi-raspall Fredi-raspall mentioned this pull request Jan 7, 2026
Adds a small crate with a procedural macro to derive trait "Sample".
The trait is meant to allow building sample json/yaml files for
the main gateay CRD. Trait "Sample" is introduced later, outside of
this crate.

Signed-off-by: Fredi Raspall <fredi@githedgehog.com>
Signed-off-by: Fredi Raspall <fredi@githedgehog.com>
Add a vanilla implementation of the Sample trait for the
primitive / basic types that the generated rust types for the
CRDs depend on.

Signed-off-by: Fredi Raspall <fredi@githedgehog.com>
Modify build.rs to derive trait Sample for the autogenerated
types to represent CRDs, recursively.

By automatically deriving Sample, we make sure that samples will
be aligned when the CRD definitions change.

Signed-off-by: Fredi Raspall <fredi@githedgehog.com>
The function will be used to create sample json and yaml files
to be used as templates for manual testing.

Signed-off-by: Fredi Raspall <fredi@githedgehog.com>
Adds crate k8s-sample-crds which, at build time, uses the utils in
k8s-intf to generate json/yaml "samples" (templates) that are
up-to-date with the CRD definitions in k8s-intf.

Signed-off-by: Fredi Raspall <fredi@githedgehog.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants