Kapitan glossary: inventory, targets and refs for Kubernetes
kadet-hub lists generators for Kapitan. These are the terms the catalog uses.
- Kapitan
- A configuration management tool that compiles an inventory into Kubernetes manifests, Terraform, documentation and other files. kadet-hub is a community catalog and is not run by the Kapitan project. kapitan.dev
- Inventory
- The YAML hierarchy of classes and targets that holds a project’s parameters; a generator reads its settings from it. Inventory in the Kapitan docs
- Class
- A YAML file under
inventory/classes/with parameters and a list of other classes it includes. Targets include classes, and Kapitan merges their parameters in the order they are listed. A recipe and the pins of its generators are classes. Classes in the Kapitan docs - Target
- A file under
inventory/targets/that lists the classes it includes and sets its own parameters, such as a cluster or an environment.kapitan compilewrites one output directory per target. Targets in the Kapitan docs - Interpolation
- A
${...}reference to another inventory parameter, such as${namespace}, which the inventory backend replaces with that parameter’s value before compiling. Parameter interpolation in the Kapitan docs - Inventory backend
- The library that loads the inventory and resolves its parameters, chosen in
.kapitanor with--inventory-backend. Kapitan’s default is reclass, and reclass-rs is a drop-in replacement for it written in Rust. omegaconf uses another interpolation syntax, and the recipes so far resolve on omegaconf only. Inventory backends in the Kapitan docs - Ref
- A
?{backend:path}tag, such as?{gpg:...}, that stands for a secret held encrypted in the repository or in a backend like Vault; compiled output keeps the tag unless the compile runs with--reveal. The consumer workflow compiles without--revealand without backend credentials, and the gate does not let a generator create secrets. References in the Kapitan docs - kadet
- Kapitan’s Python input type: a Python module that returns objects, which Kapitan writes as files. kadet in the Kapitan docs
- Dependency
- An item under
parameters.kapitan.dependenciesthatkapitan compile --fetchdownloads into itsoutput_pathbefore compiling: an OCI artifact, a Helm chart, a git repository or a file over HTTP. The inventory entry on a generator page is one, pinning the version by digest. External dependencies in the Kapitan docs - Generator
- A reusable kadet module that turns a block of inventory parameters into many output files, for example every resource of an operator. Each listed generator ships a manifest,
kapitan-generator.yaml, and a fixture project the gate compiles. - Fixture
- The Kapitan project a generator ships for checks, with a
minimaltarget that loads the generator. The gate compiles it, the output diff compares its output across versions, and the kinds page lists the kinds it renders. What a generator ships - Recipe
- Inventory classes from kadet-hub/recipes that install one application or operator with kadet-hub generators. A recipe rebuilds the project’s Helm chart, release manifest or Docker Compose file, or is designed on its container image when the project ships none of these. Many replace a Bitnami chart. Recipes
- Proof level
- How far the kadet-hub/recipes CI proves a recipe. At
rendersit compares the recipe’s objects and permissions with those of its source. Atdeploysit also installs the recipe on a kind cluster and runs its smoke test. Atmigratesit also replaces a running Helm release with the recipe. A recipe from a compose file or designed on an image has nothing to compare and is atdeploys. Recipes and their levels - Fetch inventory
- A second inventory under
fetch/whose target,fetch/targets/recipes.yml, lists the recipes a project uses as dependencies. It exists because Kapitan reads the inventory before it fetches, so the inventory that includes a recipe as a class cannot fetch it. Recipes in the consumer docs - Kind
- The type of a Kubernetes resource, such as Deployment or HTTPRoute, named by
kindand the API group of itsapiVersion. The kinds page lists every kind the latest version of each generator renders, by API group, and groups that share a domain, such askubevirt.ioandpool.kubevirt.io, together. kind, the tool that runs a Kubernetes cluster in containers, is a different thing. Kubernetes kinds - Custom resource and CRD
- A custom resource is an object of a kind Kubernetes does not build in, such as a cert-manager Certificate; a CustomResourceDefinition (CRD) adds that kind to the API server with its schema and served versions. A generator can ship the CRDs of the custom resources it renders, and the gate checks those resources against them. Custom resources in the Kubernetes docs
- Operator
- A controller that runs in the cluster, watches custom resources and keeps the application they describe in the state they ask for, for example CloudNativePG for PostgreSQL clusters. Several recipes install an operator, and recipes that need one name it as a prerequisite. Operator pattern in the Kubernetes docs
- Gate
- The checks every version passes before review: secret, malware and code scans, Python errors, and a compile of the fixture project in the sandbox. What the gate checks
- Sandbox
- The container in which the gate compiles a fixture and the consumer workflow compiles a consumer’s project, without network and with decoy credentials. It runs under gVisor, a user-space kernel that handles the compile’s system calls instead of the host kernel and traces them, so the check fails when a program nobody declared runs or code reads a decoy. gVisor documentation
- Server-side dry run
- A create request with
dryRun=All, which the API server validates and admits like a real one but does not store. The gate sends the built-in resources of the compiled output to a pinned kube-apiserver this way, and the custom resources whose CRDs the generator ships, because JSON Schemas miss checks only the server runs, such as CEL rules. kubectl validate CRD with a throwaway API server - Output capability
- A risky kind of output a generator declares, such as privileged pods, host paths or Terraform provisioners. Undeclared ones fail the gate, and consumers decide which ones they accept.
- Output diff
- The diff of a version’s fixture output against that of the newest listed version of the same generator that is not yanked. The release attests it, and the generator page shows it for each version with a download, so an upgrade’s effect on the rendered files is visible before pinning it.
- krab
- An alternative Kapitan implementation. The gate also compiles each fixture with krab and records whether the output is the same; that is information, not a requirement.
- Consumer workflow
- The reusable GitHub Actions workflow
consumer.ymlof kadet-hub/registry, which a consumer’s CI calls, pinned by commit. It checks each dependency against the policy in.kapitan-sandbox.yaml, verifies every kadet-hub artifact against its attestation and the attested index, compiles in the sandbox and fails on output capabilities the policy does not accept. The workflow in the consumer docs - OCI artifact
- Content stored in an OCI registry in the image manifest format without being a container image. Each generator version is one, at
ghcr.io/kadet-hub/<name>, its files in one tar layer, which Kapitan’socidependency type pulls intooutput_path. - Digest
- The sha256 of a published artifact. Pinning by digest means the inventory gets exactly the reviewed content, even if a tag moves.
- SBOM
- A software bill of materials, the list of what an artifact contains. The release attests an SPDX 2.3 SBOM for every version with each file and its SHA-256; generators have no dependencies, so it is the reviewed file list, and the version page offers it for download.
- Provenance
- A signed record of how an artifact was built. Every version carries SLSA provenance as a GitHub artifact attestation; verifying it against the certificate identity of the registry’s release workflow on
mainshows that this workflow built the artifact. SLSA provenance - Attestation
- A signed statement, stored by GitHub and logged in Sigstore’s transparency log, that the marketplace’s release workflow built and published an artifact with this digest. It says where the artifact came from, not that it is free of flaws. Verifying by hand
- Index and index serial
- The attested list of every published version. Its serial grows with each change; a consumer who sets
index_serialrefuses any older index, so a rolled-back index cannot bring back a yanked version. - Yanked
- A version withdrawn by its owners or the maintainers. The catalog shows the reason instead of the inventory entry, and the consumer workflow refuses its digest.