Runnable examples behind the posts on the kadet-hub.org blog and its guides. Each folder belongs to one page and has a script that exits non-zero when what the page claims no longer holds.
Run a script from anywhere, for example same-app/check. The comment at the
top of each script lists the tools it needs on PATH; the
examples workflow pins their versions and
checksums. gh has to be logged in for every example that verifies
kadet-hub attestations: all but apiserver-dry-run and gvisor-ci.
apiserver-dry-run/dry-run is the script from the post and exits 1 on
purpose, because five of the manifests are broken. apiserver-dry-run/check
runs it and expects exactly those five to be rejected. In the same way,
gvisor-ci/run prints what the escape scripts do and gvisor-ci/check
compares that with the post.
first-platform is meant to be copied to the root of a repository: its
.github/workflows/compile.yml and .kapitan-sandbox.yaml only take effect
there.
The examples workflow runs every script on pushes to main and weekly, so a
change in a tool, a generator or the signed index that breaks a post shows up
as a failed run. A pull request runs the scripts of the example folders it
changes. Renovate updates versions and digests; for pins Renovate cannot hash,
the pins job prints the new hash on the Renovate PR.
Requirements: docs/specs/examples.md.