Update the Multi-Version tutorial programatically when we run make generate
#3880
Labels
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
kind/feature
Categorizes issue or PR as related to a new feature.
What do you want to happen?
Context:
The code that appears in the docs/tutorial came from real samples under: https://github.com/kubernetes-sigs/kubebuilder/tree/master/docs/book/src
When we do changes we need to ensure that the samples are updated with the latest changes made in the PR. Therefore, when we run
make generate
target which is required to push any PR it will callmake generate-docs
see:kubebuilder/Makefile
Lines 66 to 69 in 7af3a37
This target calls: https://github.com/kubernetes-sigs/kubebuilder/blob/master/hack/docs/generate.sh
which will:
What do we want :
We are re-generating all samples used in the tutorials already. However, we still automate this process for the Multi-Version sample in : https://github.com/kubernetes-sigs/kubebuilder/tree/master/docs/book/src/multiversion-tutorial/testdata/project which is used in the tutorial https://book.kubebuilder.io/multiversion-tutorial/tutorial
Currently, we do it manually by:
Therefore, the acceptance criteria of this task is to ensure that when we run
make generate
/make generate-docs
we should re-generate the sample in https://github.com/kubernetes-sigs/kubebuilder/tree/master/docs/book/src/multiversion-tutorial/testdata/project and have all code examples on top of it again automaticallyHow to do it
Extra Labels
No response
The text was updated successfully, but these errors were encountered: