How the kadet-hub guides are tested
kadet-hub is a community catalog of Kapitan generators. Its guides and posts are written by the kadet-hub maintainers and developed in kadet-hub/registry on GitHub.
Where the code of a guide runs
A guide whose code is in
kadet-hub/examples links its
example there. The workflow examples.yml of that repository runs every
example’s script on a push to main, once a week and on a manual run,
and on a pull request the scripts of the example folders it changes. A
claim of a guide that no longer holds then shows up as a failed run.
Recipes are tested by the CI of
kadet-hub/recipes, and each recipe
page names its proof level.
A guide that reports a run names the versions it ran, such as the chart, Kustomize and Kubernetes versions of the Kustomize fix in the cert-manager guide. That guide also says that this run is not part of the example’s CI.
What the catalog checks on every guide
The tests of this site run on pull requests that change it, and the release checks the built site again before it is deployed. They fail when a guide:
- has no
lastmoddate, or noTechArticledata with that date; - names a listed generator as “
<name>generator” without linking its page; - links a page, a file or a heading of the site that does not exist, or a redirect;
- is one of the three guides that open with a fix without Kapitan and no longer shows that fix before its first section.
Corrections
Report a wrong statement in a guide as an issue in kadet-hub/registry, or propose the fix in a pull request.