Skip to content

Release versioning & artifacts

kube-agents follows Semantic Versioning 2.0.0 (MAJOR.MINOR.PATCH) without a v prefix across container images, OCI Helm charts, and Terraform modules. The one exception is the Go module tag below, which Go requires to carry a v.

Every release is cut from one commit: the installer scripts (install.sh, uninstall.sh, upgrade.sh), the Helm chart and the container images of a release all come from it, and the release has passed an install and end-to-end run on a live GKE cluster before its tag is published. An emergency release can skip that live run, never the build checks: its images must already exist for the commit, and a version tag that already points elsewhere aborts it. The maintainers’ procedure is scripts/release/README.md.

Moving an install back to the previous GA release is its own page, Rolling back a release: the two upgrade.sh commands run from the older release’s checkout, and what they leave as it is.

The next version is calculated from the Conventional Commits merged since the previous release:

  • A release from main bumps MINOR. Almost every range carries a feat:, and once the previous minor has its release line (release/X.Y), a fix-only range bumps MINOR too, because the patch numbers belong to the line. So the minor number advances with each release rather than with how much changed; the release notes say what changed between two versions.
  • A PATCH release, X.Y.Z+1, is cut from the release line release/X.Y: fixes are cherry-picked onto the line. A feat: or a breaking change is refused on a line.
  • A breaking change (feat!:, fix!:, BREAKING CHANGE:) bumps MINOR while the version is 0.y.z, per SemVer 2.0 Clause 4, and MAJOR from 1.0.0 on.
  • Nothing promotes 0.y.z to 1.0.0 on its own. Declaring API stability is a decision the maintainers make and publish with an explicit version.

The releases page lists every release; count the releases between two versions there, not by date. The latest release is the numerically highest version, which may be a patch cut on the newest release line; a patch below the newest minor is published without the latest mark.

Generated release notes are the tracking mechanism. GitHub milestones are unused.

GitHub writes each release’s notes from the pull requests merged between the previous release tag and the new one, grouped by label: features, bug fixes, security, documentation, infrastructure, and a catch-all for anything else. The grouping is the label-to-category map in .github/release.yml, so a pull request’s labels decide the heading it appears under. Dependabot’s pull requests, and any labelled duplicate, invalid or wontfix, are left out.

No workflow applies these labels, so today every pull request appears under “Other Changes”. The titles follow Conventional Commits, and a ! before the colon marks a breaking change. The Upgrade page lists the breaking changes in recent releases.

Before it exists, the next release from main is whatever has merged since the most recent release cut from main: https://github.com/gke-labs/kube-agents/compare/<MAIN_GA_TAG>...main, with the newest GA tag cut from main, lists every pull request it will contain if it is cut from the tip of main.

  1. The container images built for the release’s commit are retagged to X.Y.Z in GHCR without being rebuilt, and signed with keyless Cosign through GitHub Actions OIDC.
  2. The Helm chart is packaged at version X.Y.Z (matching appVersion), pushed as an OCI package to oci://ghcr.io/gke-labs/kube-agents/charts/kube-agents:X.Y.Z, and its OCI manifest signed with Cosign.
  3. The tag sits on a stamped release commit: BAKED_RELEASE_VERSION="X.Y.Z" is written into the root scripts (install.sh, uninstall.sh, upgrade.sh), the chart version (charts/kube-agents/Chart.yaml) and the Terraform default image tags (terraform/examples/full-install/variables.tf, terraform.tfvars.example). Both install.sh and upgrade.sh check that a Git checkout matches the tag’s commit and that a tree outside Git carries a matching stamp or bundle marker; upgrade.sh also refuses a tree whose stamp names another release. Provenance attribution has the steps.
  4. The offline bundle is staged from the tagged commit with git archive, carries the .release-bundle provenance marker, and is packaged as .tar.gz and .zip.
  5. Software Bills of Materials are generated with Syft, SPDX 2.3 JSON and CycloneDX 1.5 JSON for the bundle and SPDX 2.3 JSON for each container image, and published with checksums.txt, which carries SHA256 checksums for every release asset.
  6. The k8s-api-proxy Go module is tagged k8s-api-proxy/vX.Y.Z at the release commit, so go get github.com/gke-labs/kube-agents/k8s-api-proxy@vX.Y.Z builds the proxy library that release ships. The module is v0 and its API may change in any release; a release at 1.0.0 or later tags no module until its own versioning is decided. See the module README.
  7. The k8s-api-proxy binary is attached for Linux and macOS on amd64 and arm64, as k8s-api-proxy_X.Y.Z_<os>_<arch>.tar.gz with its license and README, built from the release commit and covered by checksums.txt. Releases published before this step existed, and patches on lines older than 0.24, carry none. No SBOM is generated for these archives; the k8s-api-proxy image is built from the same source and has one, in each release that ships that image.
  8. The kube-agents-mcp workstation MCP bridge is attached for macOS and Linux on amd64 and arm64, as kube-agents-mcp_X.Y.Z_<os>_<arch>.tar.gz; there is no Windows build yet. Each archive carries the license and the repository README, is built from the release commit, and is covered by checksums.txt. kube-agents-mcp --version prints the release. A release whose bridge build fails on any platform is published without any kube-agents-mcp archive, and releases published before this step existed carry none. No SBOM is generated for these archives.

For air-gapped or restricted network environments where cloning the repository or pulling directly from GitHub is disallowed, official releases provide pre-packaged distribution bundles and Software Bill of Materials (SBOM).

Each GA release attaches the following distribution artifacts to the GitHub Release:

  • kube-agents-<VERSION>.tar.gz and kube-agents-<VERSION>.zip: Complete, self-contained offline distribution bundles containing Terraform provisioning modules (terraform/), Kubernetes operator manifests (k8s-operator/), deployment configs (deploy/), Helm charts (charts/), utility scripts (scripts/), examples (examples/), installer scripts (install.sh, upgrade.sh, uninstall.sh), and the mirrored image catalog (images.json). Tracked example files (terraform.tfvars.example) are preserved, while sensitive tokens and local caches are sanitized.
  • kube-agents-<VERSION>.tgz: Packaged Helm chart with matching version and appVersion.
  • kube-agents-<VERSION>.spdx.json and kube-agents-<VERSION>.cdx.json: Software Bill of Materials (SBOM) for the filesystem bundle in SPDX 2.3 and CycloneDX 1.5 JSON formats.
  • <image>-<VERSION>.spdx.json for each container image the release ships, the REQUIRED_RELEASE_IMAGES list in scripts/release/common.sh at the release’s own commit (a patch cut from an older release line ships the images that line has): Container image SBOMs in SPDX 2.3 JSON format generated by Syft.
  • k8s-api-proxy_<VERSION>_<os>_<arch>.tar.gz for linux and darwin on amd64 and arm64: the standalone k8s-api-proxy binary built from the release commit (statically linked on Linux), with its license and README. Older releases have none.
  • kube-agents-mcp_<VERSION>_<os>_<arch>.tar.gz for darwin and linux on amd64 and arm64 (Windows: not yet): the kube-agents-mcp MCP bridge built from the release commit, with its license and the repository README. Older releases, and a release whose bridge build failed, have none.
  • checksums.txt: SHA256 cryptographic checksums covering all distribution tarballs, zips, charts, binary archives, and SBOM JSON files.
  • checksums.txt.bundle: Keyless Cosign signature bundle attesting to the provenance and authenticity of checksums.txt signed via GitHub Actions OIDC.

Provenance attribution and .release-bundle marker

Section titled “Provenance attribution and .release-bundle marker”

Every packaged release bundle contains a .release-bundle metadata file at its root, attesting to the release provenance:

name=kube-agents
version=<VERSION>
tag=<VERSION>
commit=<STAMPED_RELEASE_COMMIT_SHA>
build_date=YYYY-MM-DDTHH:MM:SSZ

The commit field records the SHA of the tagged release commit (the single-parent stamped commit created on detached HEAD parented by the candidate commit).

When install.sh or upgrade.sh executes from an unversioned directory outside Git, verify_local_source_ref verifies source integrity in two steps:

  1. If .release-bundle is present with matching version or tag, and the BAKED_RELEASE_VERSION stamped into the running script matches the requested release, it attributes the source directory to the official release bundle and logs:
✓ Verified install sources match official release bundle <VERSION>.

(or ✓ Verified upgrade sources match official release bundle <VERSION>. during upgrades). If the marker, or the version stamped into the tree’s own root scripts, names a different release, upgrade.sh refuses; install.sh does not yet make that check.

  1. If .release-bundle is absent, both scripts accept a matching BAKED_RELEASE_VERSION stamped into the script and report matching the baked release. With no stamp, install.sh refuses unless --allow-unverified-source is passed and upgrade.sh refuses; under --dry-run both warn and continue.

Verifying release bundle integrity and provenance

Section titled “Verifying release bundle integrity and provenance”

Consumers can verify both the cryptographic provenance and integrity of downloaded release assets. First, verify the authenticity of checksums.txt using Keyless Cosign:

Terminal window
cosign verify-blob \
--bundle checksums.txt.bundle \
--certificate-identity-regexp "^https://github\.com/gke-labs/kube-agents/" \
--certificate-oidc-issuer "https://token.actions.githubusercontent.com" \
checksums.txt

Once checksums.txt is verified against GitHub Actions OIDC provenance, verify downloaded files against the checksums:

Terminal window
sha256sum -c checksums.txt --ignore-missing

Inspecting Software Bill of Materials (SBOM)

Section titled “Inspecting Software Bill of Materials (SBOM)”

SBOMs are generated using Syft and can be inspected using standard security and compliance tooling:

Terminal window
# Inspect filesystem package inventory from SPDX SBOM using jq:
jq '.packages[] | {name: .name, version: .versionInfo, license: .licenseConcluded}' kube-agents-<VERSION>.spdx.json
# Inspect filesystem components in CycloneDX format:
jq '.components[] | {name: .name, version: .version, type: .type}' kube-agents-<VERSION>.cdx.json
# Inspect container image packages (e.g. operator runtime dependencies):
jq '.packages[] | {name: .name, version: .versionInfo}' k8s-operator-<VERSION>.spdx.json

Terraform providers on a restricted network

Section titled “Terraform providers on a restricted network”

The bundle carries the Terraform modules and the kube-agents chart, which terraform/examples/full-install reads from local paths. Three things still come from the internet during terraform init and terraform apply: the providers, from registry.terraform.io; the cert-manager chart, from https://charts.jetstack.io; and the container images. Point the images at your registry as Private / custom registry describes. For cert-manager, either allow that one host or set enable_cert_manager = false and install cert-manager from your mirror before the apply, since the operator’s webhooks need it serving; the full-install README has the details.

For the providers, build a mirror on a connected machine, from the same release’s terraform/examples/full-install, with the same Terraform you will run the install with:

Terminal window
cd terraform/examples/full-install
terraform init -backend=false
terraform providers mirror -platform=linux_amd64 /path/to/provider-mirror

The init registers the composition’s local modules, which providers mirror reads to find the providers only they declare; without it the command stops with Module not installed. Add a -platform for each OS and architecture the install will run on (darwin_arm64 for an Apple-silicon laptop). No lock file is committed, so the mirror’s contents decide which provider versions the install uses. Copy the directory to the restricted machine, or serve it over HTTPS, and point the Terraform CLI at it in ~/.terraformrc (or the file TF_CLI_CONFIG_FILE names):

provider_installation {
filesystem_mirror {
path = "/path/to/provider-mirror"
include = ["registry.terraform.io/*/*"]
}
direct {
exclude = ["registry.terraform.io/*/*"]
}
}

To serve the mirror over HTTPS, use network_mirror { url = "https://mirror.example.com/providers/" } in place of filesystem_mirror. HashiCorp’s provider installation reference has both forms. The Terraform version the configurations need is on Prerequisites.

The chart version tracks the application appVersion: the release workflow packages the chart with both version and appVersion set to the exact SemVer release tag X.Y.Z, so every chart release corresponds to exactly one application release. There is no chart-only release train — a chart-template fix ships with the next X.Y.Z tag.

Pinning Terraform module versions in GitOps

Section titled “Pinning Terraform module versions in GitOps”

When configuring GitOps repositories, pin companion Terraform modules using the exact SemVer Git tag:

module "gke_cluster" {
source = "git::https://github.com/gke-labs/kube-agents.git//terraform/modules/gke-cluster?ref=0.19.0"
project_id = var.project_id
cluster_name = "production-host-01"
location = "us-central1"
}