kubernetes-sigs / kubebuilder

Kubebuilder - SDK for building Kubernetes APIs using CRDs
http://book.kubebuilder.io
Apache License 2.0
7.73k stars 1.43k forks source link

Create testdata sample for samples in the reference links #3974

Open camilamacedo86 opened 2 months ago

camilamacedo86 commented 2 months ago

What do you want to happen?

Context:

In the hack/ dir we have a code that generate the samples and then add the code on top of this, see:

Problem that we want to solve

The code under references in the docs are not in samples generate with real projects which means they are not tested and can easily get outdated.

How we want to solve

We would like to have a sample testdata that is generated and we can use the code. We might could have a controller-per reference instead of one project for each reference.

ALso, by doing that we can test out the sample for each PR which will help us out ensure that all still valid when we update and move forward.

Example: See https://kubebuilder.io/reference/watching-resources/externally-managed

This sample could be in a project and we could indeed test it out with e2e tests.

Extra Labels

No response

BalaadityaPatanjali commented 2 months ago

I would like to work on this !

lohitslohit commented 1 month ago

@BalaadityaPatanjali Are you working on this issue?

BalaadityaPatanjali commented 1 month ago

@BalaadityaPatanjali Are you working on this issue?

No, you can work on it !

lohitslohit commented 1 month ago

okay @BalaadityaPatanjali

@BalaadityaPatanjali Are you working on this issue?

No, you can work on it !