Stageproof is a free, open-source (Apache-2.0) single-binary CLI that catches breaking Helm chart upgrades before they hit your cluster. It reads a chart on disk, the chart an Argo CD Application or Flux HelmRelease points at, or two rendered YAML manifests. No account, no config file, no cluster access, and 0 AI calls.
A chart upgrade can pass helm lint and helm template and still break a cluster. Those tools read the new chart on its own. They do not know which version you run today, which values you set, or which Kubernetes version your cluster runs. Four failures come from that gap:
Stageproof finds these in seconds with one command, before the upgrade hits your cluster.
| Check | Question it answers | When it runs |
|---|---|---|
| Chart rendering | Does the new chart render with your values? | Chart, Argo CD, and Flux runs (skipped for --before / --after). For upgrades, the current chart renders in install mode and the new chart renders with --is-upgrade (falling back to install mode with a warning if upgrade mode fails). Both renders receive the target Kubernetes minor's served API kinds via --api-versions. |
| Values proof | Does every key in your values file still have an effect in the new chart? | When you pass a values file. Uncertain keys are render-proven. --values-proof full render-tests every key. |
| Image tags | Does a new or changed container image tag exist for your node architecture? | When an image tag is new or changed (skip with --offline) |
| Helm 4 | Does a second helm binary render the same objects, and is apiVersion: v3 set? | With --helm-compare |
| Kubernetes API acceptance | Would Kubernetes of the version you run accept these objects, and does the chart use an API that version removed or deprecated? | Every run. Stageproof starts its own temporary API server on this machine, not your cluster. --api-server in the next section explains it. |
| Impact and CRDs | What does the upgrade delete, restart, expose, privilege-escalate, or break in a CRD schema? | When comparing the old and new objects |
| Cluster facts | What Kubernetes version, CRDs, stored versions, admission policies, and node architectures does your real cluster run? | With --cluster-facts and no file, or with a file from stageproof facts export. The calls are read-only. No file also sets the Kubernetes version, so --current-k8s is not required. |
| CRD size | Is a CRD too large to apply without server-side apply? | Every run |
| Live rehearsal | Does the upgrade install, upgrade, run base-ref smoke commands, and roll back in a real cluster? | Only with --live |
Most options have a default. The first value in each row is that default, except --current-k8s, which has none. A check needs the Kubernetes version from that flag, from --cluster-facts, or from currentKubernetes. With none of those, the check exits 2. The options below change what is checked or where the result goes. The full list is in Commands and flags.
Stageproof never connects to your cluster. A check does not read your kubeconfig unless you pass --cluster-facts with no file. A cluster is only touched when you opt in: --live creates a temporary kind cluster on this machine and deletes it after the run, and --cluster-facts with no file, or stageproof facts export, makes read-only calls. With no --kubeconfig and no --context, that read uses the kubeconfig and current context kubectl uses.
| Option | Values | What each value does |
|---|---|---|
--current-k8s | No default. A minor such as 1.35 | The Kubernetes version your cluster runs today. Every API check uses it. A problem on this version is BLOCKED, because the upgrade fails now. Pass this flag, pass --cluster-facts, or set currentKubernetes. With none of those, the check exits 2. |
--next-k8s | empty, or a minor such as 1.36 | The version you plan to move the cluster to. Empty skips this check. Set, a problem on that version is a warning: the chart works today and breaks after the cluster upgrade. |
--api-server | auto | Stageproof downloads kube-apiserver, etcd, and kubectl for the --current-k8s minor and starts them on this machine for the length of the run. It is an empty Kubernetes API server with no nodes, not your cluster. Stageproof applies the current objects to it, then asks it whether it accepts the new ones. This catches removed APIs, a field that cannot change on an existing object, and invalid values. The first run for a minor downloads them into the user cache (~/.cache/stageproof/envtest on Linux, about 170 MB per minor), and later runs reuse them. When the download fails, Stageproof uses the built-in API table instead and the report says so. |
off | No API server is started and nothing is downloaded. Stageproof only compares the chart's API versions with the built-in table of what each Kubernetes minor serves. Removed and deprecated APIs are still found. A field that Kubernetes would reject is not. | |
require | The same as auto, except that a missing API server is NOT CHECKED (exit 2) instead of a fallback. Use it in CI when a weaker check must not pass silently. | |
--api-server-dir | empty, or a directory | A directory that already holds kube-apiserver, etcd, and kubectl. Nothing is downloaded. For machines without internet access, fill it once with stageproof fetch-apiserver --k8s 1.35 --out <dir>. |
--values-proof | default | Stageproof reads the templates to decide whether each key in your values file still has an effect. A key it cannot decide from the templates is rendered with and without that key. |
full | Every key in your values file is rendered with and without that key. Slower, and it does not rely on reading the templates. | |
--offline | false or true | true does not contact a container registry and does not download kube-apiserver, etcd, or kubectl. Binaries already in the cache or in --api-server-dir still run. Without them the check is NOT CHECKED unless you also pass --api-server off. A --repo chart download still runs. |
--server-side-apply | false or true | Say whether you deploy with server-side apply, for example Argo CD ServerSideApply=true or helm upgrade --server-side. true makes an unknown field BLOCKED, because the server rejects it, and turns off the large CRD warning. With false and client-side Helm 3, an unknown field is a warning, because Helm drops it and the upgrade succeeds. An Argo CD Application with ServerSideApply=true sets this for you. |
--cluster-facts | omitted, no file, or a file | Omitted skips the read. No file reads the cluster kubectl uses, the same get and list calls as stageproof facts export. A file is JSON that command already wrote. |
--helm-compare | empty, or a helm binary | Renders the chart with a second helm binary as well, for example Helm 4, and reports where the two outputs differ. |
--live | false or true | true rehearses the upgrade in a temporary kind cluster: install, upgrade, smoke commands, rollback. Use the v0.9.0-live image, which contains kind, kubectl, and Helm. The host still needs a Docker daemon. Only this can give PROVEN. With false the best result is PASSED. |
--require-rehearsal | false or true | true turns a PASSED without a rehearsal into NOT CHECKED (exit 2). |
--format | text, markdown, json, sarif | The report format on standard output. text is the human report, markdown is the merge-request comment, json is the machine report, and sarif is for code scanning. Progress and errors go to standard error. |
--out, --comment-file | empty, or a file | Also write the JSON report or the Markdown comment to that file. Standard output keeps the --format report. |
--config | empty, or a file | The settings file with ignores, policy, and exclude paths. Empty uses .stageproof.yaml in the working directory when it exists. See Configuration file. |
Every run ends with one of four results. The exit code of the command carries the same information, so a CI job can act on it.
The job log and the Markdown comment list Deletes, CRDs, Privilege, Exposure, Values, Restarts, and Not checked before the check list. A section with nothing in it is left out. Those lines are the finding messages. The report does not call a model.
| Result | Exit code | Meaning |
|---|---|---|
| PROVEN | 0 | The checks passed and the upgrade was rehearsed in a temporary cluster. |
| PASSED | 0 | The checks on the chart files passed. The upgrade was not rehearsed. The job log prints NOT TESTED LIVE in red, and the comment repeats it. The pipeline stays green. |
| BLOCKED | 1 | The upgrade has a problem. The report names it. |
| NOT CHECKED | 2 | Stageproof could not finish the check, or --require-rehearsal was set and no rehearsal ran. |
See Read the result for the full report format.
The word upgrade means two different things in these docs. They use different flags, so keep them apart.
| Kind | Example | What Stageproof does |
|---|---|---|
| Chart upgrade | The argo-cd chart moves from 10.9.6 to 10.18.0. | This is the main job. Stageproof compares the two chart versions. |
| Kubernetes cluster upgrade | Your cluster moves from Kubernetes 1.35 to 1.36. | Stageproof does not upgrade a cluster. It tells you whether a chart works on the version you run, and warns you about the version you plan to move to. |
| Input | Status |
|---|---|
| A Helm chart in a directory | Supported |
Two versions of one chart in a Helm repository or an OCI registry (--repo, --chart, --from, --to) | Supported. See Commands and flags. |
An Argo CD Application (HTTPS chart repository, oci:// registry, local Git chart path, multi-source, and .yaml.tmpl) | Supported, including several sources and a chart path in this checkout |
A Flux HelmRelease (helm.toolkit.fluxcd.io/v2, v2beta2, or v2beta1) | Supported. See Check a Flux HelmRelease. |
Two directories or files of rendered YAML (--before and --after) | Supported. See Compare rendered manifests. |
| Terraform providers and modules | Not supported |
| Container image contents | Not supported (registry tag existence and platform checks are included since v0.6.0) |
| Kustomize and Helmfile | Not supported. check-pr also ignores a loose manifest that is not inside a chart. |
The full list is in Scope and limits. Measured accuracy numbers on 18 active incidents and 316 CNCF upgrade pairs across 105 CNCF projects (0/283 wrong blocks) are in docs/accuracy.md.
Stageproof is a single free binary (Apache-2.0). On Linux, paste one command. It downloads the signed v0.9.0 archive, checks the checksum, and puts stageproof in ~/.local/bin. Homebrew, the Helm plugin, and the container image are below. No account and no configuration file.
Paste this into a terminal. The script picks amd64 or arm64 from the machine, checks checksums.txt, and installs the binary to ~/.local/bin. When that directory is not already named in your shell profile, it adds one PATH line to ~/.zshrc, ~/.bashrc, or ~/.profile, matching $SHELL. The export on the second line makes stageproof available in this terminal. The same file is install.sh.
curl -fsSL https://stageproof.github.io/stageproof/install.sh | sh
export PATH="${HOME}/.local/bin:${PATH}"
stageproof v0.9.0 (Apache-2.0)
This is the script the command runs:
#!/bin/sh
# Download the signed Stageproof release and install it to ~/.local/bin.
set -eu
version=v0.9.0
case "$(uname -s)" in
Linux) ;;
*)
echo "stageproof: this script is for Linux. On macOS: brew install stageproof/stageproof/stageproof" >&2
exit 1
;;
esac
case "$(uname -m)" in
x86_64) arch=amd64 ;;
aarch64 | arm64) arch=arm64 ;;
*)
echo "stageproof: unsupported architecture $(uname -m)" >&2
exit 1
;;
esac
plain=${version#v}
archive="stageproof_${plain}_linux_${arch}.tar.gz"
url="https://github.com/stageproof/stageproof/releases/download/${version}"
dest="${HOME}/.local/bin"
mkdir -p "${dest}"
work=$(mktemp -d)
trap 'rm -rf "${work}"' EXIT
curl -fsSL -o "${work}/checksums.txt" "${url}/checksums.txt"
curl -fsSL -o "${work}/${archive}" "${url}/${archive}"
(
cd "${work}"
awk -v name="${archive}" '$2 == name { print; found=1 } END { exit !found }' checksums.txt > check-one.txt
sha256sum -c check-one.txt >/dev/null
)
tar -xzf "${work}/${archive}" -C "${work}" stageproof
install -m 755 "${work}/stageproof" "${dest}/stageproof"
case "${SHELL:-}" in
*/zsh) rc="${HOME}/.zshrc" ;;
*/bash) rc="${HOME}/.bashrc" ;;
*) rc="${HOME}/.profile" ;;
esac
if ! grep -F '.local/bin' "${rc}" >/dev/null 2>&1; then
printf '\nexport PATH="${HOME}/.local/bin:${PATH}"\n' >> "${rc}"
fi
"${dest}/stageproof" version
brew install stageproof/stageproof/stageproof
The plugin downloads the signed v0.9.0 binary for your OS and checks checksums.txt before running. helm stageproof takes the exact same flags and returns the same exit codes as stageproof.
Helm 3 installs from the git repository. Helm 4 does not install a git URL, because a git checkout has no .prov file. Install the signed release archive. The signing key is plugin/signing-key.asc. Its fingerprint is C1B5 596F 1E06 468E C194 7460 6215 0D75 15D3 CD70.
helm plugin install https://github.com/stageproof/stageproof
curl -fsSL -o stageproof-plugin.asc https://raw.githubusercontent.com/stageproof/stageproof/v0.9.0/plugin/signing-key.asc helm plugin install https://github.com/stageproof/stageproof/releases/download/v0.9.0/stageproof-0.9.0.tgz --keyring stageproof-plugin.asc
helm stageproof version
stageproof v0.9.0 (Apache-2.0)
Set STAGEPROOF_VERSION to another vX.Y.Z tag before installing or updating to pin a different release.
docker run --rm ghcr.io/stageproof/stageproof:v0.9.0 version
ghcr.io/stageproof/stageproof:v0.9.0 bundles Stageproof, Helm 3.22.1, and Git. It does not contain kind or kubectl, so it cannot rehearse an upgrade. ghcr.io/stageproof/stageproof:v0.9.0-live adds kind, kubectl, and the Docker client. That is the image for --live. Stageproof still does not install Docker on the host. The kind node is a container, so the host Docker daemon has to be running and the container needs its socket. See Rehearse the upgrade in a temporary cluster.
Linux is the command above. It installs that same signed archive. For macOS and Windows, download the archive for your OS and architecture from GitHub Releases, unpack stageproof onto your PATH, and check the version:
stageproof version
stageproof v0.9.0 (Apache-2.0)
go install github.com/stageproof/stageproof/cmd/stageproof@v0.9.0
| Tool | Version | Needed for |
|---|---|---|
| Helm | 3 or 4 (tested on 3.22.1 and 4.3.2) | Chart, Argo CD, and Flux checks, and stageproof check --repo. Not needed for rendered manifests (--before / --after). |
| Git | Any recent version | Comparing against a branch and checking pull requests (check-pr) |
| Docker | A running daemon | Optional --live rehearsal. Use ghcr.io/stageproof/stageproof:v0.9.0-live, which contains kind, kubectl, and Helm. The host daemon starts the kind node. Stageproof does not install Docker. |
Next: Run your first check.
You can scan any public Helm chart upgrade in one command with zero setup: no git checkout, no config file, and no Kubernetes cluster.
This command pulls both versions of metrics-server into a temporary directory, checks image tags, runs a local Kubernetes 1.35 API server to dry-run the upgrade, and cleans up after itself.
stageproof check \ --repo https://kubernetes-sigs.github.io/metrics-server/ \ --chart metrics-server \ --from 3.12.2 --to 3.13.0 \ --current-k8s 1.35
! NOT TESTED LIVE. This job did not rehearse the upgrade. The files were checked. The upgrade itself was not. stageproof PASSED exit 0 compare metrics-server@3.12.2 -> metrics-server@3.13.0 k8s 1.35 · checked: files, API server 1.35.0 Restarts INFO The pod template of Deployment/stageproof-check/stageproof-rel-metrics-server changed at spec.template.spec.containers[name=metrics-server].image. The pods will restart. A restart is normal for an upgrade. ✓ PASS helm template rendered 9 Kubernetes objects cleanly ✓ PASS values.yaml AST no custom -f overlay passed (default chart values verified) ! WARN upgrade signals 2 named changes ✓ PASS image tags 1 new or changed image tag checked ✓ PASS API server 1.35.0 Kubernetes 1.35.0 accepted the upgrade ✓ PASS impact Compared stored objects for 8 of 9 objects, and rendered objects for the rest. ✓ PASS k8s 1.35 compatibility current Kubernetes was checked by API server 1.35.0 verdict PASSED (exit 0) · 9056ms · 0 AI calls
The result is PASSED (exit 0). That run used chart defaults. Your values file is -f values.yaml. --values is the same flag. Repeat it for more than one file.
Run the exact same command on a chart upgrade whose Job pod template changes without a Helm hook annotation:
stageproof check \ --repo https://ygqygq2.github.io/charts/ \ --chart nacos \ --from 2.1.9 --to 2.1.10 \ --current-k8s 1.35
stageproof BLOCKED exit 1
compare nacos@2.1.9 -> nacos@2.1.10
k8s 1.35 · checked: files, API server 1.35.0
✓ PASS helm template rendered 17 Kubernetes objects cleanly
✓ PASS values.yaml AST no custom -f overlay passed (default chart values verified)
! WARN upgrade signals 2 named changes
✓ PASS image tags 1 new or changed image tag checked
✕ FAIL API server 1.35.0 1 rejection
✓ PASS impact Compared stored objects for 14 of 17 objects, and rendered objects for the rest.
✓ PASS k8s 1.35 compatibility current Kubernetes was checked by API server 1.35.0
ERROR k8s.apply.immutable_field
resource: Job/default/stageproof-rel-nacos-init-db
Kubernetes rejected the update. `spec.template` is immutable.
verdict BLOCKED (exit 1) · 10560ms · 0 AI calls
The local Kubernetes 1.35 API server caught the immutable Job update and returned exit 1. Your real cluster was never touched.
Every run writes one report and ends with an exit code. With no --format flag, the format is text and that report goes to standard output. This page names the streams, the formats, and the JSON fields.
The default is --format text. The report is written to standard output. Standard error is for a bad flag, a settings file that did not parse, a download or git error, and the check-pr line that names a path skipped by exclude. --format json and --format sarif write only that document to standard output, so stageproof check ... --format json > report.json is valid JSON.
Color is ANSI on the text report. STAGEPROOF_COLOR=always (also 1, true, or yes) turns it on. STAGEPROOF_COLOR=never (also 0, false, or no) turns it off. When that variable is unset, NO_COLOR turns color off. When neither is set, color is on if CI=true or GITLAB_CI=true, and otherwise only when standard output is a terminal.
| Flag | Default | Where it is written |
|---|---|---|
--format text | yes, when --format is omitted | Standard output. The human report. |
--format markdown | no | Standard output. The pull request comment body. |
--format json | no | Standard output. schema_version is 1. The shape is docs/report.schema.json. |
--format sarif | no | Standard output. One SARIF 2.1.0 log. A blocker is error, a warning is warning, and info is note. --out stays JSON. |
--out report.json | omitted | That file, in addition to whatever --format writes to standard output. The file is always JSON. |
--comment-file comment.md | omitted | That file, in addition to whatever --format writes to standard output. The file is always Markdown. |
A finding location line names resource: when the finding has a resource. That string is what ignores[].resource matches. The file path on the same line is not part of the match.
stageproof check writes one report object. stageproof check-pr writes one combined object when --format json or --out is set. Both use schema_version 1. Fields are added and not renamed.
| Object | Fields |
|---|---|
| Report | schema_version, verdict, exit_code, adapter, target_k8s, next_k8s_eol, base_ref, head_ref, values_files, checked, head_git, cluster, duration_ms, timestamp, checks, findings, skipped, excluded_checks |
| Combined report | schema_version, verdict, exit_code, head_git, reports, excluded |
findings[] | rule_id, severity (blocker, warning, or info), resource, file, message, detail, proof, verified, ignored, ignore_reason, ignore_expires |
checks[] | name, status (pass, fail, warn, or skip), summary |
stageproof PASSED exit 0 compare ./webapp-1.4.0 -> ./webapp-1.5.0 values values-prod.yaml k8s 1.33 · checked: files ✓ PASS helm template rendered 1 Kubernetes object cleanly ✓ PASS values.yaml AST 2 keys: 0 proven by rendering, 2 read in templates ✓ PASS k8s 1.33 compatibility 0 removed APIs or selector breaks on K8s 1.33 verdict PASSED (exit 0) · 1910ms · 0 AI calls
| Line | What it tells you |
|---|---|
stageproof | The result and the exit code. |
compare | The current chart on the left and the new chart on the right. |
values | The values the chart was checked with. The line is left out when you gave no values file. |
k8s | The Kubernetes version the check used, then what was actually checked. checked: files means the built-in table was used and no API server was started. checked: files, API server 1.35.0 names the patch of the local API server that answered. checked: rendered manifests is the same table for YAML you already rendered. checked: rendered manifests, API server 1.35.0 means that API server answered. checked: files, live cluster means the upgrade was also rehearsed in a temporary cluster. |
PASS / FAIL lines | One line per check. |
ERROR blocks | A problem that blocks the upgrade. Each one has a rule name, the place it was found, and an explanation. They do not appear in the example above. |
WARN blocks | Something to know about. A warning does not change the result. |
checked: | files, files, API server 1.35.0, rendered manifests, rendered manifests, API server 1.35.0, or files, live cluster. This is the scope of the result. The patch is the API server that ran, not a claim about your cluster. |
WARN with a reason code | The live rehearsal did not finish, and the report says why. A file check that you did not ask to rehearse does not print this. |
verdict | The result again, and how long the run took. 0 AI calls states that no AI model took part in the result. |
--require-rehearsal turns a PASSED without a rehearsal into NOT CHECKED, exit 2.| Result | Exit code | What happened | What to do |
|---|---|---|---|
| PROVEN | 0 | Every check passed, and the upgrade and the rollback both worked in a temporary cluster. | Merge. |
| PASSED | 0 | Every check on the chart files passed. No cluster was used. The report says NOT TESTED LIVE. | The job stays green. Use --live when you want the upgrade exercised. --require-rehearsal turns this case into NOT CHECKED. |
| BLOCKED | 1 | At least one ERROR was found. | Fix what the report names, then run again. Findings lists every rule. |
| NOT CHECKED | 2 | Stageproof could not complete the check. Typical causes are a wrong flag, no Kubernetes version, a git ref that does not exist, a chart that could not be downloaded, or --require-rehearsal without a completed rehearsal. | Read the error message, fix the cause, and run again. It says nothing about whether the upgrade is safe. |
Exit code 0 means PASSED or PROVEN. Any other exit code is a failure. A script that stops on the first non-zero status already does the right thing.
stageproof check --current-chart ./webapp-1.4.0 --new-chart ./webapp-1.5.0 --current-k8s 1.35
The table under Output streams and the default format is the full list. --format text is the default. --out and --comment-file are extra files. They do not replace standard output.
--format sarif prints one log. check-pr puts every chart in that same log. This run exits 1. The command is the dropped-key fixture with --api-server off:
stageproof check \ --current-chart testdata/dropped/base \ --new-chart testdata/dropped/head \ -f testdata/dropped/values.yaml \ --current-k8s 1.33 \ --api-server off \ --format sarif
{
"$schema": "https://docs.oasis-open.org/sarif/sarif/v2.1.0/errata01/os/schemas/sarif-schema-2.1.0.json",
"version": "2.1.0",
"runs": [
{
"tool": {
"driver": {
"name": "stageproof",
"version": "dev",
"informationUri": "https://stageproof.github.io/stageproof/",
"rules": [
{
"id": "helm.values.silently_dropped",
"shortDescription": {
"text": "A values key no longer has an effect"
},
"fullDescription": {
"text": "A key in your values file was used by the current chart and has no effect in the new chart. proof is render when two renders showed that, and templates when the reader decided. When you check a chart on its own, it means the chart does not use the key at all. The message does not print your value."
},
"help": {
"text": "Rename the key to what the new chart uses, or remove it."
},
"defaultConfiguration": {
"level": "error"
}
},
{
"id": "impact.restart",
"shortDescription": {
"text": "A pod template changed"
},
"fullDescription": {
"text": "A pod template changed. The report names the field. A restart is normal for an upgrade."
},
"help": {
"text": "Nothing, unless the field is not the change you expected."
},
"defaultConfiguration": {
"level": "note"
}
}
]
}
},
"invocations": [
{
"executionSuccessful": false,
"exitCode": 1
}
],
"results": [
{
"ruleId": "helm.values.silently_dropped",
"ruleIndex": 0,
"level": "error",
"message": {
"text": "Values key `message` was consumed in baseline chart but is silently ignored in upgraded chart."
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "testdata/dropped/values.yaml"
}
},
"logicalLocations": [
{
"fullyQualifiedName": "message",
"kind": "resource"
}
]
}
],
"properties": {
"base_ref": "testdata/dropped/base",
"head_ref": "testdata/dropped/head",
"proof": "render",
"severity": "blocker"
}
},
{
"ruleId": "impact.restart",
"ruleIndex": 1,
"level": "note",
"message": {
"text": "The pod template of Deployment/default/demo changed at spec.template.spec.containers[name=app].args[0]. The pods will restart. A restart is normal for an upgrade."
},
"locations": [
{
"logicalLocations": [
{
"fullyQualifiedName": "Deployment/default/demo",
"kind": "resource"
}
]
}
],
"properties": {
"base_ref": "testdata/dropped/base",
"head_ref": "testdata/dropped/head",
"severity": "info"
}
}
],
"properties": {
"verdict": "BLOCKED"
}
}
]
}
You can pass -f more than once when you deploy with several values files.
Every command and every flag in the source on main. The released binary is v0.9.0. stageproof check and stageproof check-pr exit 0, 1, or 2. explain exits 2 for an unknown rule id. comment exits 0 when the comment is written and 2 when the file, token, or permission is missing. --best-effort makes HTTP 403 exit 0.
stageproof check flag defaultsThese defaults are the flag values in cmd/stageproof/main.go. --current-k8s has no default. A settings file can set the version when the flag is omitted, and can turn --live or --server-side-apply on. A flag that names a Kubernetes version wins over the file.
| Flag | Default | Values |
|---|---|---|
--format | text | text, markdown, json, sarif. Written to standard output. Any other name exits 2 and does not run the check. |
--config | omitted | A settings file. Omitted means .stageproof.yaml in the working directory when that file exists. Set, and missing or invalid, exits 2. check-pr does not take this flag. |
--current-k8s | none | A Kubernetes minor, such as 1.35. Also read from --cluster-facts or currentKubernetes. With none of those, check exits 2. check-pr exits 2 when a chart changed, and exits 0 when nothing changed. |
--next-k8s | empty | A Kubernetes minor. Empty skips that check. |
--api-server | auto | auto, off, or require. |
--values-proof | default | default or full. |
--offline | false | Boolean. Skips registry lookups and the API server download. A cached API server still runs. Without those binaries the check is NOT CHECKED unless --api-server is off. |
--server-side-apply | false | Boolean. --apply-mode ssa is the same switch. --apply-mode is client or ssa. Any other name exits 2. |
--live | false | Boolean. --rehearse is the old name. |
--require-rehearsal | false | Boolean. A file check that did not rehearse exits 2. |
--timeout | 10m | A Go duration. Readiness wait for one live step. |
--out | omitted | A file path. JSON, in addition to standard output. |
--comment-file | omitted | A file path. Markdown, in addition to standard output. |
Environment variables read by the report and by stageproof comment: STAGEPROOF_COLOR, NO_COLOR, CI, GITLAB_CI, GITHUB_TOKEN, STAGEPROOF_GITLAB_TOKEN, GITLAB_TOKEN, CI_JOB_TOKEN.
| Command | What it does |
|---|---|
stageproof check | Checks one chart, two versions from a Helm repository or an OCI registry, one Argo CD Application, one Flux HelmRelease, or two sets of rendered manifests. |
stageproof check-pr | Finds the charts, Applications, and Flux HelmReleases that a branch changed, and checks each one. |
stageproof init | Writes a starter configuration file. |
stageproof explain <rule-id> | Prints the level, the meaning, and what to do for one rule. An unknown id exits 2. See Findings. |
stageproof fetch-apiserver | Downloads kube-apiserver, etcd, and kubectl for one Kubernetes minor into a directory. |
stageproof facts export | Writes cluster facts as JSON. get and list only. With no --kubeconfig and no --context, it uses the kubeconfig and current context kubectl uses. See Read a cluster. |
stageproof comment | Posts the Markdown file from --comment-file, or updates the comment that already contains the marker. |
stageproof mcp | Serves check, check_pr, and explain on stdin and stdout. Paths stay inside --root. It does not open a port. |
stageproof version | Prints the version. |
stageproof help | Prints the list of commands and flags. |
stageproof check: what to compareGive --new-chart, --repo, --argocd-file, --flux-file, or both --before and --after. Without one of those the command ends with exit code 2.
| Flag | Meaning |
|---|---|
--new-chart <dir> | The chart you want to deploy. |
--current-chart <dir> | The chart you run today. Leave it out to check the new chart on its own. |
--repo <url> | An http:// or https:// Helm repository, or an oci:// registry. Requires --chart, --from, and --to. Stageproof downloads both versions, checks the upgrade, and deletes the temporary directories. A failed download is exit 2. --offline does not skip the download. |
--chart <name> | With --repo, the chart name in that repository. Without --repo, an older name for --new-chart (a directory). |
--from <version> | With --repo, the version you run today. Without --repo, an older name for --current-chart (a directory). |
--to <version> | With --repo, the version you want to deploy. Without --repo, an older name for --new-chart (a directory). |
--current-git <ref> | Read the current chart, the current Application, or the current HelmRelease from this branch, tag, or commit. |
--argocd-file <file> | An Argo CD Application file that names the chart you want to deploy. |
--current-argocd-file <file> | An Argo CD Application file that names the chart you run today. Use it when the old file is not in Git. |
--flux-file <file> | A Flux HelmRelease that names the chart you want to deploy. See Check a Flux HelmRelease. |
--current-flux-file <file> | A Flux HelmRelease that names the chart you run today. Use it when the old file is not in Git. |
--before <dir or file> | Rendered manifests before the change. A .yaml or .yml file, or a directory of them. Use it with --after. See Compare rendered manifests. |
--after <dir or file> | Rendered manifests after the change. Not combined with a chart, an Application, values files, --set, or --live. |
--repo downloads the two versions and removes them when the command exits. This run compared cert-manager v1.21.2 with v1.21.3. --api-server off uses the built-in table and does not download an API server. An OCI registry uses the same flags, for example --repo oci://docker.io/envoyproxy --chart gateway-helm --from v1.9.4 --to v1.10.0.
stageproof check --repo https://charts.jetstack.io --chart cert-manager --from v1.21.2 --to v1.21.3 --current-k8s 1.35 --api-server off
! NOT TESTED LIVE. This job did not rehearse the upgrade. The files were checked. The upgrade itself was not.
stageproof PASSED exit 0
compare cert-manager@v1.21.2 -> cert-manager@v1.21.3
k8s 1.35 · checked: files
Restarts
INFO The pod template of Deployment/stageproof-check/stageproof-rel-cert-manager changed at spec.template.metadata.labels.app.kubernetes.io/version. The pods will restart. A restart is normal for an upgrade.
INFO The pod template of Deployment/stageproof-check/stageproof-rel-cert-manager-cainjector changed at spec.template.metadata.labels.app.kubernetes.io/version. The pods will restart. A restart is normal for an upgrade.
INFO The pod template of Deployment/stageproof-check/stageproof-rel-cert-manager-webhook changed at spec.template.metadata.labels.app.kubernetes.io/version. The pods will restart. A restart is normal for an upgrade.
✓ PASS helm template rendered 44 Kubernetes objects cleanly
✓ PASS values.yaml AST no custom -f overlay passed (default chart values verified)
! WARN upgrade signals 2 named changes
✓ PASS image tags 5 new or changed image tags checked
✓ PASS impact Compared rendered objects. The API server did not run, so a default the server adds is not in this comparison.
✓ PASS k8s 1.35 compatibility 0 removed APIs or selector breaks on K8s 1.35
INFO impact.restart
resource: Deployment/stageproof-check/stageproof-rel-cert-manager
The pod template of Deployment/stageproof-check/stageproof-rel-cert-manager changed at spec.template.metadata.labels.app.kubernetes.io/version. The pods will restart. A restart is normal for an upgrade.
INFO impact.restart
resource: Deployment/stageproof-check/stageproof-rel-cert-manager-cainjector
The pod template of Deployment/stageproof-check/stageproof-rel-cert-manager-cainjector changed at spec.template.metadata.labels.app.kubernetes.io/version. The pods will restart. A restart is normal for an upgrade.
INFO impact.restart
resource: Deployment/stageproof-check/stageproof-rel-cert-manager-webhook
The pod template of Deployment/stageproof-check/stageproof-rel-cert-manager-webhook changed at spec.template.metadata.labels.app.kubernetes.io/version. The pods will restart. A restart is normal for an upgrade.
WARN helm.release.app_version_changed
appVersion moves from v1.21.2 to v1.21.3. The image that the chart runs may change with it.
This is the chart's declared application version. It is not a test that the registry tag exists.
WARN helm.image.changed
5 container images changed. Deployment/stageproof-check/stageproof-rel-cert-manager-cainjector.template.spec.containers[0] cert-manager-cainjector container moves from quay.io/jetstack/cert-manager-cainjector:v1.21.2 to quay.io/jetstack/cert-manager-cainjector:v1.21.3. Deployment/stageproof-check/stageproof-rel-cert-manager-webhook.template.spec.containers[0] cert-manager-webhook container moves from quay.io/jetstack/cert-manager-webhook:v1.21.2 to quay.io/jetstack/cert-manager-webhook:v1.21.3. Deployment/stageproof-check/stageproof-rel-cert-manager.template.spec.containers[0] acme-http01-solver-image argument moves from quay.io/jetstack/cert-manager-acmesolver:v1.21.2 to quay.io/jetstack/cert-manager-acmesolver:v1.21.3. Deployment/stageproof-check/stageproof-rel-cert-manager.template.spec.containers[0] cert-manager-controller container moves from quay.io/jetstack/cert-manager-controller:v1.21.2 to quay.io/jetstack/cert-manager-controller:v1.21.3. Job/stageproof-check/stageproof-rel-cert-manager-startupapicheck.template.spec.containers[0] cert-manager-startupapicheck container moves from quay.io/jetstack/cert-manager-startupapicheck:v1.21.2 to quay.io/jetstack/cert-manager-startupapicheck:v1.21.3.
The render names a different image, including images on custom resources and images passed as container arguments. Whether that tag exists is a separate check.
verdict PASSED (exit 0) · 4165ms · 0 AI calls
stageproof check: values| Flag | Meaning |
|---|---|
-f <file>, --values <file> | A values file you deploy with. Repeat it for several files. |
--base-values <file> | A values file for the current chart, when it differs from the one for the new chart. By default both charts use the -f files. |
--set <key=value> | A single value, the same as in Helm. Repeat it for several values. |
--values-proof default|full | default render-tests a key the template reader cannot decide. full render-tests every key. |
--offline | Do not contact a registry, and do not download the API server. Chart deprecation is still reported. A cached API server still runs. Without those binaries the check is NOT CHECKED unless --api-server off. |
--helm-compare <path> | Also render with this helm binary. A parsed difference is a warning. A binary that cannot render the chart blocks. See Moving to Helm 4. |
stageproof check: Kubernetes| Flag | Default | Meaning |
|---|---|---|
--current-k8s <version> | The flag, else --cluster-facts, else currentKubernetes. No silent version. | The Kubernetes version your cluster runs. With none of those, the check exits 2. See Check against your Kubernetes version. |
--cluster-facts | Not set | No file reads the cluster kubectl uses. A file is JSON from stageproof facts export. Sets the version when --current-k8s is absent, preloads those custom resource definitions, and passes stored versions and node architectures into the check. --kubeconfig, --context, and --helm-releases apply to the live read. |
--next-k8s <version> | Not set | The Kubernetes version you plan to upgrade the cluster to. See Prepare for a Kubernetes cluster upgrade. |
--api-server auto|off|require | auto | Ask a local API server of --current-k8s whether the upgrade is accepted. auto uses the built-in table when the binaries cannot be downloaded, and the report says so. require is NOT CHECKED in that case. off uses only the table. |
--api-server-dir <dir> | The user cache | A directory that already contains kube-apiserver, etcd, and kubectl. Nothing is downloaded. Fill it with stageproof fetch-apiserver --k8s 1.35 --out <dir>. |
--server-side-apply | Off | You deploy with server-side apply. Turns off the large CRD warning. An unknown field is then BLOCKED. With client-side Helm 3 it is a warning, because that upgrade drops the field and succeeds. |
stageproof check: live rehearsal| Flag | Default | Meaning |
|---|---|---|
--live | Off | Rehearse the upgrade in a temporary kind cluster. Does not install Docker, kind, kubectl, or Helm. See Rehearse the upgrade in a temporary cluster. |
--timeout <duration> | 10m | How long to wait for pods at each step. |
--crd-file <file or URL> | None | A CRD to install before the rehearsal. Repeat it for several. |
--helm-test | Off | Run the chart's helm test hooks after the upgrade. |
--keep-cluster | Off | Do not delete the cluster at the end. |
--cluster-name <name> | stageproof- plus the process id | The name of the temporary cluster. It is the first line of the verdict. |
stageproof check: output| Flag | Default | Meaning |
|---|---|---|
--format <name> | text | What is printed: text, markdown, json, or sarif. Any other name exits 2. |
--out <file> | None | Also write the JSON report to this file. |
--comment-file <file> | None | Also write the Markdown report to this file. |
stageproof check-pr| Flag | Default | Meaning |
|---|---|---|
--current-git <ref> | origin/main | The branch or commit the pull request will merge into. |
--new-git <ref> | HEAD | The end of the pull request branch. It is used to list the changed files. The chart files are read from your working directory. |
--current-k8s, --next-k8s, --api-server, --api-server-dir, --values-proof, --offline, --cluster-facts, --helm-compare, --server-side-apply, --live, --require-rehearsal | The same as for stageproof check. They apply to every chart, Application, and HelmRelease that is checked. | |
--format | text | The same as for stageproof check. |
--comment-file <file> | None | One Markdown file for the whole pull request. With several checks it starts with a summary table. |
--out <file> | None | One JSON file with verdict, exit_code, and a reports list that holds every report. |
--cluster-name, --timeout | Same as check | Passed through when this command also runs --live. |
Which values files a chart is checked with comes from the configuration file. See Check each values file of a chart.
stageproof init| Flag | Default | Meaning |
|---|---|---|
--dir <dir> | . | The directory to scan for charts. |
--out <file> | .stageproof.yaml | The file to write. |
See Configuration file for what the file contains.
stageproof commentReads the Markdown file written by --comment-file and posts it on the pull request or merge request. A later run updates the comment that contains the marker. The default marker is <!-- stageproof-comment -->. The command exits 0 when the comment is written. It exits 2 when the file, the token, or the permission is missing. That exit code is not an upgrade verdict. Keep the exit code from check or check-pr and run this command after it. --best-effort exits 0 on HTTP 403.
| Flag | Default | Meaning |
|---|---|---|
--file <file> | Required | The Markdown file from --comment-file. |
--provider auto|github|gitlab | auto | auto uses GitHub when GITHUB_ACTIONS is true, and GitLab when GITLAB_CI is true. |
--pr <number> | The Actions event | GitHub pull request number. Otherwise GITHUB_EVENT_PATH or refs/pull/<number>/merge in GITHUB_REF. |
--mr <iid> | CI_MERGE_REQUEST_IID | GitLab merge request iid. |
--repo <owner/name> | GITHUB_REPOSITORY or CI_PROJECT_ID | GitHub owner/name, or a GitLab project id or group/project path. |
--marker <text> | <!-- stageproof-comment --> | The text that identifies the comment this command updates. One line, at most 200 characters. |
--best-effort | Off | Exit 0 when the server returns HTTP 403. The default exit is 2, and the message names the missing permission. |
GitHub calls api.github.com, or the host in GITHUB_API_URL. The token is GITHUB_TOKEN. GitLab calls the host in CI_API_V4_URL, or https://gitlab.com/api/v4. The token is STAGEPROOF_GITLAB_TOKEN, then GITLAB_TOKEN, then CI_JOB_TOKEN. A job token is sent as JOB-TOKEN. The others are sent as PRIVATE-TOKEN. The token is not printed. The command does not follow a redirect to another host.
stageproof mcpSpeaks the Model Context Protocol on stdin and stdout. Logs go to stderr. The process does not open a port. The server reports the same version as stageproof version.
The tools are check, check_pr, and explain. check returns the same JSON report as --format json. check_pr returns the combined JSON that check-pr --format json writes. explain returns the rule id, level, title, meaning, and fix. Every path is relative to --root. An absolute path, a path that leaves that directory, or a symlink that points outside it is rejected. live, out, and comment_file are rejected. api_server defaults to off, so a tool call does not download an API server unless the caller sets auto or require. current_k8s has no default. Pass it, or pass cluster_facts that include the server version. With neither, the tool returns an error. check_pr still returns a passing report when the diff changes no chart. A check uses the same chart, registry, and API server hosts as stageproof check.
| Flag | Default | Meaning |
|---|---|---|
--root <dir> | . | The only directory the tools may read. A missing directory exits 2. |
The process exits 0 when the client closes stdin. It exits 2 when --root cannot be read.
| Variable | Effect |
|---|---|
STAGEPROOF_COLOR | always turns colored output on. never turns it off. |
NO_COLOR | Any value turns colored output off. |
GITHUB_TOKEN | Token for stageproof comment on GitHub. Sent only to api.github.com or GITHUB_API_URL. |
GITHUB_API_URL | GitHub Enterprise API. The default host is https://api.github.com. |
STAGEPROOF_GITLAB_TOKEN, GITLAB_TOKEN, CI_JOB_TOKEN | Token for stageproof comment on GitLab, in that order. Sent only to the host in CI_API_V4_URL, or to https://gitlab.com/api/v4 when that variable is empty. |
Without these variables, output is colored in a terminal and when CI or GITLAB_CI is true.
| Exit code | Result |
|---|---|
0 | PROVEN or PASSED |
1 | BLOCKED |
2 | NOT CHECKED. Also used when the command line is wrong or a chart cannot be downloaded. |
These names from earlier versions still work when --repo is not set. With --repo, --chart is the chart name and --from and --to are versions.
| Current name | Older names |
|---|---|
--new-chart | --to, --chart. Directories, unless --repo is set. |
--current-chart | --from, --base-chart. --from is a version when --repo is set. |
--current-git | --from-git, --git-base |
--base-values | --from-values |
--current-k8s | --current-kubernetes, --target-k8s, --k8s-version |
--next-k8s | --next-kubernetes, --k8s-next |
--server-side-apply | --apply-mode ssa |
--live | --rehearse |
--require-rehearsal | none |
--crd-file | --crd-bundle |
check-pr | check-mr |
Settings that should apply to every check can go in a file named .stageproof.yaml. The file is optional.
stageproof check reads .stageproof.yaml from the directory in which you run the command. In a repository, put it in the top directory and run Stageproof from there. stageproof check-pr reads that file from --current-git, the branch the pull request merges into. It does not read the copy in the pull request. If the pull request changes the file, the report includes config.changed_in_pr. An ignore added only on the branch does not hide a finding.
currentKubernetes: "1.35"
nextKubernetes: "1.36"
serverSideApply: true
liveTest: false
crdFiles:
- https://github.com/cert-manager/cert-manager/releases/download/v1.16.2/cert-manager.crds.yaml
charts:
- name: webapp
path: charts/webapp
valuesFiles:
- charts/webapp/values-prod.yaml
- charts/webapp/values.yaml
| Setting | Meaning | How file and flag combine |
|---|---|---|
currentKubernetes | The Kubernetes version your cluster runs. Same as --current-k8s. | The file is used when the flag is not given. |
nextKubernetes | The Kubernetes version you plan to upgrade the cluster to. Same as --next-k8s. | The file is used when the flag is not given. |
serverSideApply | You deploy with server-side apply. Same as --server-side-apply. | true in the file turns it on. A flag cannot turn it off. |
liveTest | Rehearse every check in a temporary cluster. Same as --live. | true in the file turns it on. A flag cannot turn it off. |
requireRehearsal | A check that was not rehearsed is NOT CHECKED (exit 2) instead of PASSED. Same as --require-rehearsal. | true in the file turns it on. Passing the flag does the same. |
crdFiles | CRDs to install before a live rehearsal. Same as --crd-file. | The file is used when the flag is not given. |
charts | The values files of each chart. Used by stageproof check-pr. See Check each values file of a chart. | There is no flag for it. check-pr uses the list on the base ref. |
ignores | A finding that stays in the report and does not make the result BLOCKED. Each entry needs rule, reason, and expires (YYYY-MM-DD, and that date still matches). resource is a glob and matches the resource: line in the text report, not the file name. * matches every resource. chart is an optional glob of the chart name or repo-relative path. Empty matches every chart. The rule is the exact id, not a prefix. | There is no flag for it. check-pr uses the entries on the base ref. stageproof check reads them from --config or from .stageproof.yaml. |
policy | A rule id or a prefix, mapped to block, warn, or info. The longest match wins. impact.delete matches impact.delete.pvc. A policy map on one charts entry overrides this map for that chart when the prefix is the same length or longer. | There is no flag for it. check-pr uses the map on the base ref. |
exclude | Path globs check-pr skips. * stays inside one path segment. ** crosses segments. A skipped path is printed on stderr and listed in the JSON excluded field. | There is no flag for it. check-pr uses the list on the base ref. |
smoke | Commands that run in the temporary cluster after the upgrade and before the rollback. Each entry needs name and run. timeout is a Go duration greater than zero. The default is 2m. | There is no flag for it. The commands run only with --live. check-pr uses the list on the base ref. |
Every setting is optional. Leave out the ones you do not need. stageproof check reads .stageproof.yaml from the working directory, or the file you pass with --config. check-pr reads the file from the base ref only.
| Key | Type | Default |
|---|---|---|
currentKubernetes | string | Empty when the file omits it. The check then needs --current-k8s or --cluster-facts. |
nextKubernetes | string | empty |
serverSideApply | bool | false |
liveTest | bool | false |
requireRehearsal | bool | false |
crdFiles | list of strings | empty |
charts | list of objects with name, path, valuesFiles, and optional policy | empty |
charts[].policy | map of rule id or prefix to block, warn, or info | empty. A bad value is a parse error and exit 2. |
applications | list of objects with name, repoURL, chart, versionFrom, valuesFrom | empty |
templatePlaceholders | map of string to string | empty |
ignores | list of objects. rule, reason, and expires are required. resource and chart are optional globs. | empty |
policy | map of rule id or prefix to block, warn, or info | empty. The longest prefix wins. A chart policy wins at the same length. |
exclude | list of path globs. * stays in one segment. ** crosses segments. | empty. check-pr only. |
smoke | list of objects with name, run, and optional timeout | empty. Timeout default 2m. |
Two JSON files sit next to this settings file. docs/report.schema.json is the report --format json writes. stageproof facts export writes the cluster facts file that --cluster-facts reads. A Renovate preset is a separate renovate.json. It is not read by stageproof check.
ignores:
- rule: helm.values.silently_dropped
resource: config.logLevel
chart: charts/a
reason: "The chart renamed this key."
expires: "2099-01-01"
- rule: impact.delete.pvc
resource: "PersistentVolumeClaim/default/data"
reason: "This volume is replaced on purpose."
expires: "2099-01-01"
policy:
impact.delete: warn
impact.restart: info
charts:
- name: a
path: charts/a
policy:
helm.values.silently_dropped: block
exclude:
- experimental/**
- apps/legacy-appset.yaml
smoke runs only with --live. check-pr uses the list on the base ref. This file makes the rehearsal fail on purpose. The same charts as the passing run above were checked with --cluster-name sp-docs-smoke-fail.
currentKubernetes: "1.33"
smoke:
- name: boom
run: echo "smoke boom" && exit 1
timeout: 30s
stageproof check --api-server off --current-chart ./webapp-1.0.0 --new-chart ./webapp-1.1.0 --live --cluster-name sp-docs-smoke-fail --timeout 90s
! kind cluster sp-docs-smoke-fail
stageproof BLOCKED exit 1
compare ./webapp-1.0.0 -> ./webapp-1.1.0
k8s 1.33 · checked: files, live cluster
✓ PASS helm template rendered 1 Kubernetes object cleanly
✓ PASS values.yaml AST no custom -f overlay passed (default chart values verified)
✓ PASS image tags no new or changed image
✓ PASS impact Compared rendered objects. The API server did not run, so a default the server adds is not in this comparison.
✓ PASS k8s 1.33 compatibility 0 removed APIs or selector breaks on K8s 1.33
✓ PASS kind cluster boot isolated cluster `sp-docs-smoke-fail` ready on Kubernetes v1.33.12
✓ PASS baseline install baseline revision 1 healthy in 4.2s
✓ PASS in-place helm upgrade empty cluster upgraded in 200ms, 0 restarts. No existing data was in this cluster.
✕ FAIL smoke: boom smoke boom
✓ PASS rollback rehearsal reverted cleanly to revision 1 in 100ms after a failed smoke test
ERROR live.smoke_failed
sp-trial-553199/sp-rel
Smoke test `boom` failed.
smoke boom
verdict BLOCKED (exit 1) · 34149ms · 0 AI calls
An ignore keeps the finding on the page and stops it from making the result BLOCKED. This file ignores the dropped key in the dropped-key fixture. The command exits 0. The finding is still printed.
ignores:
- rule: helm.values.silently_dropped
resource: "*"
reason: "The chart renamed this key."
expires: "2099-01-01"
stageproof check \ --current-chart testdata/dropped/base \ --new-chart testdata/dropped/head \ -f testdata/dropped/values.yaml \ --current-k8s 1.33 \ --api-server off
! NOT TESTED LIVE. This job did not rehearse the upgrade. The files were checked. The upgrade itself was not.
stageproof PASSED exit 0
compare testdata/dropped/base -> testdata/dropped/head
values testdata/dropped/values.yaml
k8s 1.33 · checked: files
Values
ERROR Values key `message` was consumed in baseline chart but is silently ignored in upgraded chart. Ignored until 2099-01-01: The chart renamed this key.
Restarts
INFO The pod template of Deployment/default/demo changed at spec.template.spec.containers[name=app].args[0]. The pods will restart. A restart is normal for an upgrade.
✓ PASS helm template rendered 1 Kubernetes object cleanly
✕ FAIL values.yaml AST 2 keys: 1 proven by rendering, 1 read in templates
✓ PASS image tags no new or changed image
✓ PASS impact Compared rendered objects. The API server did not run, so a default the server adds is not in this comparison.
✓ PASS k8s 1.33 compatibility 0 removed APIs or selector breaks on K8s 1.33
ERROR helm.values.silently_dropped
testdata/dropped/values.yaml resource: message
Values key `message` was consumed in baseline chart but is silently ignored in upgraded chart.
ignored until 2099-01-01: The chart renamed this key.
INFO impact.restart
resource: Deployment/default/demo
The pod template of Deployment/default/demo changed at spec.template.spec.containers[name=app].args[0]. The pods will restart. A restart is normal for an upgrade.
verdict PASSED (exit 0) · 232ms · 0 AI calls
Run this in the top directory of the repository.
stageproof init
Wrote .stageproof.yaml (discovered 2 Helm charts, nextKubernetes=1.34). Set currentKubernetes to the version the cluster runs.
The command finds every chart in the repository and the values files next to it, and writes them to .stageproof.yaml. It does not write currentKubernetes.
# Written by `stageproof init`. Settings for `stageproof check` and `stageproof check-pr`.
nextKubernetes: "1.34"
liveTest: false
charts:
- name: billing
path: charts/billing
valuesFiles:
- charts/billing/values.yaml
- name: webapp
path: charts/webapp
valuesFiles:
- charts/webapp/values-prod.yaml
- charts/webapp/values.yaml
nextKubernetes is a placeholder. Change it to the version you plan to move to, or delete that line. Set currentKubernetes to the version your cluster runs, or pass --current-k8s or --cluster-facts on each check.
Subcharts inside a chart's own charts directory are not listed. They are checked as part of their parent chart.
A chart whose version lives in another file, rather than in an Application manifest, is listed under applications. versionFrom.regex must capture the version. templatePlaceholders replaces ${...} tokens. A token left in the chart repository, name, or version makes the result NOT CHECKED and names the token. A token left anywhere else is replaced with stageproof-placeholder, and the report says a placeholder was used.
Every rule that can appear in a report, what it means, and what to do about it. An ERROR makes the result BLOCKED. A WARN does not change the result. stageproof explain prints the same text for one rule.
stageproof explain helm.values.silently_dropped
helm.values.silently_dropped A values key no longer has an effect ERROR A key in your values file was used by the current chart and has no effect in the new chart. proof is render when two renders showed that, and templates when the reader decided. When you check a chart on its own, it means the chart does not use the key at all. The message does not print your value. What to do Rename the key to what the new chart uses, or remove it.
An id that is not a rule exits 2 and prints error: no rule "not.a.rule".
| Rule | Level | Meaning | What to do |
|---|---|---|---|
helm.values.silently_dropped | ERROR | A key in your values file was used by the current chart and has no effect in the new chart. proof is render when two renders showed that, and templates when the reader decided. When you check a chart on its own, it means the chart does not use the key at all. The message does not print your value. | Rename the key to what the new chart uses, or remove it. |
helm.values.renamed | WARN | A key that exists only in the new chart changes the same rendered fields as a dropped key. verified is true only when that effect matches. A similar name with a different effect stays false. The message names both keys and does not print your value. | Move the value to the key the report names when verified is true. Read the chart when it is false. |
helm.values.default_changed | WARN | A chart default you do not set changed, and rendering the new chart with the old default changes the objects. The message names the chart defaults. It does not print your values. | Set the key if you depended on the old default. With more than eight changes, re-run with --values-proof full for one line per key. |
helm.values.preexisting_orphan | WARN | A key in your values file is not used by the current chart and not by the new one. | Remove the key when convenient. The upgrade did not cause this. |
helm.values.new_required_unset | ERROR | The new chart requires a value that the current chart did not require, and you do not set it. A required call inside an if or an else is not this rule. The message does not include your values. | Set the value in your values file or with --set. |
helm.values.parse_error | ERROR | A values file or a chart could not be read. | Fix the file that the message names. |
helm.values.undeclared | WARN | check-pr found values files beside a chart, and charts[].valuesFiles on the base ref does not list what that chart deploys. The chart default values.yaml is not used as a stand-in. The result is NOT CHECKED. | Add each values-*.yaml file and each file in ci/ to charts[].valuesFiles on the base ref. |
A value that the current chart already required, and that you set at deploy time and not in a file, does not block the check. Stageproof fills in a placeholder for it and reports that on a WARN line named required values shim.
| Rule | Level | Meaning | What to do |
|---|---|---|---|
helm.template.render_failed | ERROR | helm template failed on the new chart with your values. | Read the Helm error in the report and fix the chart or the values. |
helm.template.invalid_yaml | ERROR | The new chart rendered, and the output is not valid YAML. | Fix the template that produces the invalid output. |
helm.template.upgrade_fallback | WARN | Rendering the new chart with --is-upgrade failed (often because a template expects an existing cluster secret during upgrade), while install-mode rendering succeeded. Stageproof continued using the install-mode render. | Pass the values that upgrade-mode templates require if you want the check to exercise .Release.IsUpgrade branches. |
manifest.invalid_yaml | ERROR | --before or --after could not be read. The path is missing, the file is not .yaml or .yml, the directory has none of those files, or the YAML does not parse. | Point both flags at rendered manifests and fix the file named in the report. |
These are warnings. The result stays PASSED when nothing else is blocked. They name the change. They do not decide that the project forbids it. A new or changed image tag is asked of its registry by the image tags check, which is a separate line.
| Rule | Level | Meaning | What to do |
|---|---|---|---|
helm.release.version_span | WARN | The chart version skips more than one minor version, or moves to a new major version. | Read that project's upgrade notes before merging. |
helm.release.app_version_changed | WARN | appVersion in Chart.yaml changed. The image the chart runs often changes with it. | Confirm the application version is the one you meant to run. |
helm.image.changed | WARN | An image in the render changed. That includes a container image, an image field on a custom resource, and an image passed as a container argument. A tag that only gains or loses a leading v is named. This warning does not itself ask the registry. | Read the image tags line for whether the new tag exists. |
helm.operator.existing_custom_resources | WARN | The chart ships custom resource definitions and the application it runs is changing. Existing custom resources are not in this check. | Plan the upgrade of the objects that already exist. A rehearsal uses an empty cluster. |
helm.operator.documented_upgrade_behavior | WARN | The chart uses a custom resource group whose project documents an upgrade effect. The note and the source URL come from internal/knowledge/operators.yaml. helm.operator.primary_restart is the same note for one release. | Read the source named in the report. A rehearsal uses an empty cluster. |
helm.operator.primary_restart | WARN | The same note as helm.operator.documented_upgrade_behavior, emitted again under the alias stored for that operator. The message and the source URL are the same. The alias is not a second kind of failure. | Read the source named in the report. A rehearsal uses an empty cluster. |
helm.config.placeholder_used | INFO | A ${...} token outside the chart repository, name, or version had no entry in templatePlaceholders. It was replaced with stageproof-placeholder. | Add the token to templatePlaceholders when the real value matters. |
helm.config.unresolved_placeholder | WARN | A ${...} token is still in the chart repository, name, or version. The result is NOT CHECKED and the report names the token. | Set that token in templatePlaceholders. |
helm.dependency.not_updated | WARN | A Chart.yaml dependency constraint changed, and the packaged chart under charts/ did not. | Run helm dependency update so the render uses the new chart. |
config.changed_in_pr | WARN | check-pr reads .stageproof.yaml from the base ref. A change in the pull request does not change ignores, policy, or the other settings for this check. The finding names the file and does not print the file. | Review that change on its own. An ignore added only in the pull request does not hide a finding. |
config.ignore_expired | WARN | An ignore whose expires date is before today no longer matches. The finding it named is reported as usual. The warning names the rule and the resource pattern. | Remove the entry, or set a new expires date in the file on the base branch. |
flux.values.unreadable | WARN | A valuesFrom ConfigMap or Secret is not a file in this repository, its key is missing, or the Secret is encrypted. The chart is still rendered. The result stays PASSED, including after a rehearsal. The report names the reference and does not print the value. | Commit the object this HelmRelease names, or set optional: true when a missing object should be skipped. A missing key is still named. |
For each image that is new or whose reference changed, Stageproof sends HTTP HEAD to the registry named in that reference. It does not download layers. A manifest list is fetched only to see whether linux/amd64 is present. One request waits 5 seconds. The whole check waits 20 seconds. At most four requests run at once for one registry host. --offline sends nothing to the registry and does not download an API server. An unchanged tag is not asked.
This run compared the missing-tag incident charts with --api-server off:
stageproof check --api-server off --current-chart corpus/incidents/image-tag-missing/before --new-chart corpus/incidents/image-tag-missing/after --current-k8s 1.35
stageproof BLOCKED exit 1
compare corpus/incidents/image-tag-missing/before -> corpus/incidents/image-tag-missing/after
k8s 1.35 · checked: files
Restarts
INFO The pod template of Deployment/default/demo changed at spec.template.spec.containers[name=app].image. The pods will restart. A restart is normal for an upgrade.
✓ PASS helm template rendered 1 Kubernetes object cleanly
✓ PASS values.yaml AST no custom -f overlay passed (default chart values verified)
! WARN upgrade signals 1 named change
✕ FAIL image tags a new or changed image tag was not found, or it lacks the required platform
✓ PASS impact Compared rendered objects. The API server did not run, so a default the server adds is not in this comparison.
✓ PASS k8s 1.35 compatibility 0 removed APIs or selector breaks on K8s 1.35
INFO impact.restart
resource: Deployment/default/demo
The pod template of Deployment/default/demo changed at spec.template.spec.containers[name=app].image. The pods will restart. A restart is normal for an upgrade.
WARN helm.image.changed
1 container image changed. Deployment/default/demo.template.spec.containers[0] app container moves from nginx:1.27-alpine to public.ecr.aws/docker/library/nginx:stageproof-no-such-tag.
The render names a different image, including images on custom resources and images passed as container arguments. Whether that tag exists is a separate check.
INFO supply.image.moved
resource: Deployment/default/demo.template.spec.containers[0] app
Image repository changed from `index.docker.io/library/nginx` to `public.ecr.aws/docker/library/nginx`.
The registry or the repository is different. The tag check still asks the new repository.
ERROR supply.image.not_found
resource: Deployment/default/demo.template.spec.containers[0] app
Image `public.ecr.aws/docker/library/nginx:stageproof-no-such-tag` was not found.
The registry answered that this tag or digest is not there.
verdict BLOCKED (exit 1) · 895ms · 0 AI calls
| Rule | Level | Meaning | What to do |
|---|---|---|---|
supply.image.not_found | ERROR | The registry answered that the tag or digest is not there. | Use a tag the registry has, or remove the reference. |
supply.image.platform_missing | ERROR | The tag is a manifest list and it has no linux/amd64 manifest. | Publish that platform, or change the tag. |
supply.image.unverifiable | INFO | The registry returned 401 or 403. A private image and a missing image can look the same. | Run where registry credentials are available, or pass --offline when this registry should not be asked. |
supply.registry_unreachable | INFO | The request timed out, or the registry returned a rate limit or a server error. | Run the check again. This is not proof that the tag is missing. |
supply.image.moved | INFO | The registry or the repository changed. The message names both repositories. | Confirm the new repository is the one you meant. |
supply.chart.deprecated | WARN | The new chart's Chart.yaml sets deprecated: true. | Read the chart's notes before staying on it. |
Argo CD helm.parameters and --set are written into a values file named helm.parameters before the values check. A parameter key the new chart no longer reads is helm.values.silently_dropped.
These compare the chart with Helm 4.
| Rule | Level | Meaning | What to do |
|---|---|---|---|
helm4.chart_v3 | WARN | The new chart's Chart.yaml apiVersion is v3. Charts v3 are experimental. | Keep apiVersion: v2 until you mean to use the experimental format. See Moving to Helm 4. |
helm4.render_differs | WARN | --helm-compare rendered different objects. The message names the objects and paths. A field that changes between two renders of the same binary is ignored. | Read the path. The report does not print the value. |
helm4.render_failed | ERROR | One of the two helm binaries could not render the chart. | Read the helm error in the report. Fix the chart, or stay on the helm that rendered it. |
| Rule | Level | Meaning | What to do |
|---|---|---|---|
k8s.api.removed | ERROR | A resource uses an API version that the Kubernetes version in --current-k8s has removed. Charts are rendered with the target minor's served API kinds so capability-gated templates select the current version. When a template guards on .Capabilities.APIVersions for a legacy API version that helm template keeps in its default list, the finding is downgraded to a warning. | Move the resource to the API version named in the report. |
k8s.api.eol_blocker | WARN | A resource uses an API version that works today and is removed in the version in --next-k8s. | Migrate the resource before you upgrade the cluster. |
k8s.api.deprecated | WARN | A resource uses an API version that is deprecated on the version in --current-k8s. | Plan the migration. The report names the version in which the API is removed. |
k8s.upgrade.immutable_selector_changed | ERROR | The label selector of a Deployment, StatefulSet, or DaemonSet differs between the current and the new chart. Kubernetes does not allow that change on an existing workload. | Keep the selector as it was, or plan to delete and recreate the workload. |
k8s.apply.immutable_field | ERROR | The local API server rejected an update, or the rendered objects show a non-hook Job whose pod template changed. The report names the field. A strategy change that leaves rollingUpdate set, or that switches to RollingUpdate without maxUnavailable or maxSurge, is explained as that conflict. A Job pod template and a StatefulSet volumeClaimTemplates change are this rule. A Helm hook is dry-run as a create, not as an update. When a template names an object dynamically with .Release.Revision, the finding is downgraded to a warning because helm template always renders revision 1. | Keep the field, or plan to delete and recreate the object. On --next-k8s the same rejection is a warning. |
k8s.apply.unknown_field | WARN | The object has a field the schema does not declare. Helm 3 drops it and the upgrade succeeds. A new Helm 4 install uses server-side apply and rejects it, and so does --server-side-apply. Those two cases are ERROR. An upgrade of a release Helm 3 created stays a warning. | Remove the field, or keep it only if your apply path drops unknown fields. |
k8s.apply.invalid | ERROR | The API server rejected the object. An unsupported enum value is this rule. The report names the field and the constraint. It does not print the rejected value. On --next-k8s this is a warning. | Change the object so that Kubernetes version accepts it. |
crd.existing_object_invalid | ERROR | An object from the current chart does not match the new CRD schema. The same rule covers a storage version that was removed, and a field an existing custom resource uses when that field was removed, changed type, became required, or lost an enum value. The API server can also emit this rule. | Keep the stored object valid, or plan a migration before the upgrade. |
k8s.apply.not_exercised | INFO | A webhook configuration, an APIService, or an object the server could not judge was not sent. Sending a webhook configuration would make later requests fail. | Nothing, unless you needed that object judged. It is not a failure. |
k8s.crd.oversized_annotation_limit | WARN | A CRD in the chart is larger than 256 KiB. | See Large CRDs and server-side apply. |
These compare the current objects with the new ones. Lists of containers, env, ports, and volumes are matched by name. RBAC rules are compared as a set. When the API server returned a stored form for both sides, that form is what is compared. Otherwise the check says it used the rendered objects.
| Rule | Level | Meaning | What to do |
|---|---|---|---|
impact.delete.crd | ERROR | A templated custom resource definition is in the current chart and not in the new one. Helm deletes it, and Kubernetes then deletes every object of that kind. An object with helm.sh/resource-policy: keep is not this rule. | Keep rendering the CRD, or move the objects before the upgrade. |
impact.delete.pvc | ERROR | A PersistentVolumeClaim is dropped. The data on that claim goes with it. The keep annotation suppresses this. | Keep the claim in the chart, or copy the data first. |
impact.delete.namespace | ERROR | A Namespace is dropped. Every object in it is deleted with it. The keep annotation suppresses this. | Keep the namespace in the chart. |
impact.delete.statefulset | ERROR | A StatefulSet is dropped and persistentVolumeClaimRetentionPolicy.whenDeleted is Delete, so its claims are deleted too. When that field is not Delete, the same rule is a warning. | Keep the StatefulSet, or accept that its claims will be deleted. |
impact.delete | WARN | Other objects the new chart does not render. When a near-identical object is created under a new name, the message starts with replaced: delete then create. An object with helm.sh/hook is not listed, and it is not impact.restart. | Confirm the objects are meant to go. |
crd.scope_changed | ERROR | A custom resource definition changed from namespaced to cluster scope, or the other way around. | Do not change scope on a CRD that already has objects. |
crd.schema.incompatible | WARN | A field was removed, changed type, became required, or lost an enum value, and no current object of that version uses it. A newly required field the object already sets, and an enum value that is still allowed, stay here. It is crd.existing_object_invalid when a current object of that version is missing a new required field, keeps a removed enum value, or uses another broken field. Each such object is named. | Read the field the report names before you upgrade. |
crd.not_upgraded_by_helm | ERROR | A CRD under crds/ changed in a way the new schema will not accept. Plain Helm does not upgrade CRDs in that directory. Argo CD with skipCrds: true uses this same rule. A new file, a removed file, or a compatible edit is a warning. | Apply that CRD yourself before the upgrade, or keep the schema compatible. |
crd.argocd_renders_crds | WARN | An Argo CD check. spec.source.helm.skipCrds: false means Argo CD renders with helm template and applies CRDs in crds/. When the field is absent, the warning says the input does not say. skipCrds: true is crd.not_upgraded_by_helm instead. | Set skipCrds to match the Application. An incompatible CRD with skipCrds: true has to be applied before the upgrade. |
crd.flux_upgrade_crds | WARN | A Flux HelmRelease. spec.upgrade.crds omitted or Skip means CRDs under crds/ are neither installed nor upgraded. An incompatible change is ERROR. Create installs a new CRD and leaves an existing one. CreateReplace is info, and the schema is compared. The helm-controller type comment says the upgrade default is Skip. The user guide lists Create for both install and upgrade. This check follows the type comment. | Set upgrade.crds to match the HelmRelease. CreateReplace updates an existing CRD and does not delete it. |
impact.privilege.rbac | WARN | A Role or ClusterRole gained rules. Wildcards, a cluster-wide secrets read, escalate, bind, impersonate, and pods/exec are named when present. Any new rule is a warning. | Confirm the new verbs are intended. |
impact.privilege.binding | WARN | A new binding to cluster-admin, or a new subject on a binding that already points at cluster-admin. | Confirm who gained that access. |
impact.privilege.securitycontext | WARN | A pod or container security context became weaker, including when the whole block is removed: privileged, privilege escalation, running as root, a writable root filesystem, or a capability that was added or no longer dropped. | Keep the stricter context unless the process needs the new right. |
impact.privilege.hostpath | WARN | A new hostPath volume, named by the volume name. The path is not printed. | Confirm the workload should see that host path. |
impact.privilege.webhook | WARN | A new admission webhook with failurePolicy: Fail, or an empty failure policy, and no namespace selector. | Add a namespace selector, or accept that a webhook outage fails every request. |
impact.privilege.conversion | WARN | A CRD conversion.strategy became Webhook. | The conversion service has to be up before objects of that kind are read. |
impact.exposure.service | WARN | A Service type moved to LoadBalancer or NodePort. | Confirm the Service should be reachable from outside the cluster. |
impact.exposure.route | WARN | An Ingress, Gateway, HTTPRoute, GRPCRoute, or TLSRoute gained a host. | Confirm the host should be published. |
impact.exposure.networkpolicy | WARN | A NetworkPolicy was removed or opened to all. A removed policy is not also listed under impact.delete. | Keep the policy, or accept the wider access. |
impact.exposure.host | WARN | hostNetwork or a hostPort was added. | Confirm the pod should use the host network. |
impact.restart | INFO | A pod template changed. The report names the field. A restart is normal for an upgrade. | Nothing, unless the field is not the change you expected. |
impact.capacity.replicas | INFO | Replicas went down. The numbers are not printed. | Confirm the smaller count is intended. |
impact.capacity.requests | INFO | A cpu or memory request went up. The quantities are not printed. | Confirm the cluster has the extra capacity. |
impact.capacity.pdb | INFO | minAvailable or maxUnavailable changed. The report names the field. | Confirm disruptions are still allowed during the upgrade. |
impact.capacity.hpa | INFO | minReplicas or maxReplicas changed. The report names the field. | Confirm the new bounds. |
These appear only with --live.
| Rule | Level | Meaning | What to do |
|---|---|---|---|
helm.runtime.upgrade_failed | ERROR | The current chart was healthy, and helm upgrade to the new chart failed. | Read the helm error in the report. The current release was healthy before this step. |
helm.runtime.pod_restarts | ERROR | The upgrade finished, and afterwards a pod was not ready or a container had restarted. | Read which pod the report names. The upgrade command itself had already finished. |
helm.runtime.rollback_failed | ERROR | helm rollback to the first revision failed. | Read the helm error in the report. The rollback to the first revision did not finish. |
helm.runtime.helm_test_failed | ERROR | The chart's helm test hooks failed after the upgrade. Only with --helm-test. | Read the hook output in the report. This rule is recorded only when --helm-test is set. |
live.smoke_failed | ERROR | A command from smoke in the base .stageproof.yaml failed or timed out after the upgrade and before the rollback. The message names the test. The detail is the end of its output, with your values removed. check-pr does not run a smoke entry added only in the pull request. | Read the output in the report. The command runs in the temporary cluster, with STAGEPROOF_NAMESPACE and STAGEPROOF_RELEASE set. |
helm.crd.upgrade_failed | ERROR | The CRDs in the new chart's crds directory could not be applied to the cluster. | Read the apply error in the report. Those CRDs were not accepted. |
A check you run without --live does not warn about that. The result is PASSED and the report says checked: files. These reasons appear only when --live was set and the rehearsal stopped before it could judge the upgrade. The result stays PASSED unless you also set --require-rehearsal, which makes it NOT CHECKED.
| Reason | Meaning | What to do |
|---|---|---|
rehearsal_required | --require-rehearsal is set and no rehearsal ran. | Add --live, or remove the requirement. |
missing_external_crds | The chart needs a CRD that Stageproof could not install. | Pass the CRD with --crd-file. |
baseline_requires_external_dependency | The current chart cannot start in an empty cluster, because it needs something from outside it. | Check with values that work in an empty cluster, for example a public image and no external database. |
head_requires_external_dependency | The same, when you check a new chart on its own. | The same. |
What the source on main covers, what it leaves out, and where a passing result says less than you might expect. The released binary is v0.9.0.
| Not supported | What that means for you |
|---|---|
| Terraform providers and modules | A change to a provider version or a module version is not checked. |
| Container image contents | Stageproof does not inspect image layers. A new or changed tag is asked of its registry. A new image is started only in the live rehearsal. |
| Kustomize and Helmfile | These files are ignored. A loose manifest is ignored by check-pr. Two rendered trees can be compared with --before and --after. |
| A Flux HelmRelease whose chart is not in this checkout | A GitRepository on another host, ExternalArtifact, a Bucket, both spec.chart and spec.chartRef, or a missing chart valuesFiles entry is NOT CHECKED. Stageproof does not clone that repository and does not render chart defaults in its place. See Check a Flux HelmRelease. |
An ApplicationSet, a chart or values file in another Git repository, or a ref source that also sets path | NOT CHECKED. Stageproof does not clone that repository, does not expand generators, and does not render chart defaults in their place. See Check an Argo CD Application. |
| Application dependencies, for example npm or Maven packages | Not checked. |
PASSED is about files. Nothing was started. The chart renders, your values are still used, and no rule found a problem. Whether the new version runs is not known.PROVEN is about an empty cluster. The temporary cluster has no production data, no traffic, and none of the other workloads in your real cluster. The rehearsal shows that the upgrade and the rollback work mechanically.--api-server off uses only that table. APIs added by CRDs are not judged by the removal table.PASSED when nothing else is blocked.--values-proof full render-tests every key. It does not know whether the application uses the rendered value correctly at runtime.charts list in the configuration file, a chart in your repository is checked with its own values.yaml only. See Check each values file of a chart.Measured accuracy on 12 active incidents and 316 CNCF upgrade pairs across 105 CNCF projects is published in docs/accuracy.md.
Check a chart that lives in your repository against the version of that chart on another branch. You do not need a second copy of the chart on disk.
main.The chart is in charts/webapp. You are on a branch that changed it. This sample is a v0.6.1 run. That binary used Kubernetes 1.33 because the command does not name a version. On main, pass --current-k8s or the check exits 2.
stageproof check --new-chart charts/webapp --current-git main
stageproof PASSED exit 0 compare main:charts/webapp -> charts/webapp k8s 1.33 · checked: files ✓ PASS helm template rendered 1 Kubernetes object cleanly ✓ PASS values.yaml AST no custom -f overlay passed (default chart values verified) ✓ PASS k8s 1.33 compatibility 0 removed APIs or selector breaks on K8s 1.33 verdict PASSED (exit 0) · 90ms · 0 AI calls
charts/webapp as it exists on main into a temporary directory. That copy is the current chart.The compare line shows this as main:charts/webapp -> charts/webapp. Your branch and your working directory are not changed.
--current-gitAny name that Git can resolve: a branch, a tag, or a commit hash. The chart directory must exist at that point in history. If it does not, the command prints the git error on standard error and ends with exit code 2.
In CI, a shallow clone may not contain the branch you compare with. Fetch it first. GitLab CI shows how.
Compare two sets of YAML you already rendered. Stageproof does not call Helm. The released binary is v0.9.0.
The directory before has a Deployment and a PersistentVolumeClaim. The directory after has the same Deployment and drops the claim. The sample below is the output of this command on that input.
stageproof check \ --before testdata/manifests/before \ --after testdata/manifests/after \ --current-k8s 1.35 \ --api-server auto
! The new manifests drop PersistentVolumeClaim/demo/data. The data on that claim goes with it.
stageproof BLOCKED exit 1
compare testdata/manifests/before -> testdata/manifests/after
k8s 1.35 · checked: rendered manifests, API server 1.35.0
Deletes
ERROR The new manifests drop PersistentVolumeClaim/demo/data. The data on that claim goes with it.
○ SKIP required values gate Skipped. These inputs are rendered manifests, not Helm charts.
○ SKIP helm template Skipped. The manifests were already rendered.
○ SKIP values.yaml AST Skipped. There is no chart template to read.
○ SKIP upgrade signals Skipped. There is no chart to compare.
✓ PASS image tags no new or changed image
✓ PASS API server 1.35.0 Kubernetes 1.35.0 accepted the upgrade
✕ FAIL impact Compared stored objects from the API server.
✓ PASS k8s 1.35 compatibility current Kubernetes was checked by API server 1.35.0
ERROR impact.delete.pvc
PersistentVolumeClaim/demo/data
The new manifests drop PersistentVolumeClaim/demo/data. The data on that claim goes with it.
verdict BLOCKED (exit 1) · 3426ms · 0 AI calls
.yaml and .yml file under each directory is read, in name order, including files in subdirectories. A single file works the same way.checked: names the patch that answered. --api-server off uses the built-in table and checked: reads rendered manifests.--live with --before and --after exits 2. Manifest mode does not install a chart. Values files and --set are rejected for the same reason. A file that is not .yaml or .yml, or a directory with none of those files, is manifest.invalid_yaml and exits 1.
check-pr does not pick up a loose manifest. It still checks a file inside a chart, including a file the pull request deleted. See Check a pull request.
Check the Helm chart an Argo CD Application renders. A remote chart is downloaded. A chart path in this checkout is read from Git. The released binary is v0.9.0. It reads several sources and a chart path in this checkout.
The chart lives in this repository. A second source only supplies a values file. On main the tag is 1.27. The working tree changes it to 1.28.
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: web
spec:
sources:
- repoURL: https://example.test/stageproof.git
path: charts/web
helm:
valueFiles:
- $values/values/prod.yaml
- repoURL: https://example.test/stageproof
ref: values
This sample is a v0.6.1 run. That binary used Kubernetes 1.33 because the command does not name a version. On main, pass --current-k8s or the check exits 2.
stageproof check --argocd-file apps/web.yaml --current-git main --api-server off
! NOT TESTED LIVE. This job did not rehearse the upgrade. The files were checked. The upgrade itself was not.
stageproof PASSED exit 0
compare charts/web (main) -> charts/web (apps/web.yaml)
values $values/values/prod.yaml
k8s 1.33 · checked: files
Restarts
INFO The pod template of Deployment/default/web changed at spec.template.spec.containers[name=app].image. The pods will restart. A restart is normal for an upgrade.
✓ PASS helm template rendered 1 Kubernetes object cleanly
✓ PASS values.yaml AST 2 keys: 0 proven by rendering, 2 read in templates
! WARN upgrade signals 1 named change
✓ PASS image tags 1 new or changed image tag checked
✓ PASS impact Compared rendered objects. The API server did not run, so a default the server adds is not in this comparison.
✓ PASS k8s 1.33 compatibility 0 removed APIs or selector breaks on K8s 1.33
INFO impact.restart
resource: Deployment/default/web
The pod template of Deployment/default/web changed at spec.template.spec.containers[name=app].image. The pods will restart. A restart is normal for an upgrade.
WARN helm.image.changed
1 container image changed. Deployment/default/web.template.spec.containers[0] app container moves from nginx:1.27 to nginx:1.28.
The render names a different image, including images on custom resources and images passed as container arguments. Whether that tag exists is a separate check.
verdict PASSED (exit 0) · 1490ms · 0 AI calls
apps/web.yaml in the working tree, and the same file on main.repoURL matches a remote of this checkout, so the chart path is read here. It is not cloned and it is not pulled.$values/values/prod.yaml is read from the root of the values source. On main the tag is 1.27. In the working tree it is 1.28.The values line is the file the Application named. The image warning is the tag from that file at each revision. --api-server off is why the impact line says the API server did not run. The default is auto.
A remote chart still works. spec.source.repoURL plus spec.source.chart is downloaded with helm pull at targetRevision, and the temporary directory is removed after the check. oci:// is a registry pull. Inline helm.values is still a values file.
| Field | Used as |
|---|---|
spec.sources | When this list is set, it is the source list. spec.source is not also read. |
repoURL and chart | A Helm repository, or an oci:// registry. targetRevision is the chart version. |
repoURL and path | A chart directory in this checkout, when repoURL matches a Git remote. The revision is the one being compared, not targetRevision. |
helm.valueFiles | Values files. A path without $ is relative to the chart. $name/file.yaml is a file at the root of the source whose ref is name. |
helm.values and helm.valuesObject | Inline values. When valuesObject is set, values is ignored. They are not merged. |
helm.parameters | Overrides, the same as --set. forceString: true is --set-string. The last duplicate name wins. |
helm.fileParameters | A file passed like --set-file. A missing file is NOT CHECKED. |
helm.releaseName | The Helm release name. When it is empty, the Application name is used. |
helm.skipCrds | true skips CRDs in crds/, like helm upgrade --skip-crds. false applies them. When the field is absent, the check says it does not know. |
spec.syncPolicy.syncOptions | If it contains ServerSideApply=true, the large CRD warning is not raised. |
Order of precedence, highest last, is the chart values.yaml, then valueFiles (the last file wins), then values, then valuesObject, then parameters. A glob in valueFiles expands in lexical order inside that one entry.
A missing values file is NOT CHECKED when ignoreMissingValueFiles is false, which is the default. The chart is not rendered from its defaults. true skips that missing file and continues.
These inputs are NOT CHECKED. Nothing is cloned and no chart defaults are rendered in their place:
ApplicationSet. Generators are not expanded.$ref values file, whose repoURL is not a remote of this checkout.ref source that also sets path. Argo CD would generate manifests from that directory as well as read values.sourceHydrator, a values file downloaded from a URL, or a valueFiles entry that uses a recursive ** glob.Some teams generate Application files from a template, for example a Terraform .yaml.tmpl file with ${...} placeholders. Stageproof accepts these files. Before reading the file it replaces each placeholder with a fixed sample value, so that the file is valid YAML: 10Gi when the placeholder name contains size, 2 when it contains replica, count, port, or concurrent, and a fixed text for everything else.
Argo CD applies the Application after the pull request merges. Run the check on the pull request. stageproof check-pr checks an Application when that file changes, when a values file it names changes, or when a file under the chart path changes. This run used a multi-source Application. helm.skipCrds: true was set. The chart had no crds/ change, so the report has no CRD line. The field is still read. The same check is stageproof/action@v1 on pull_request. Do not run that action from pull_request_target.
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: web
spec:
sources:
- repoURL: https://example.test/stageproof.git
path: charts/web
helm:
skipCrds: true
valueFiles:
- $values/values/prod.yaml
- repoURL: https://example.test/stageproof
ref: values
stageproof check-pr --current-git main --current-k8s 1.35 --api-server off
! NOT TESTED LIVE. This job did not rehearse the upgrade. The files were checked. The upgrade itself was not.
stageproof PASSED exit 0
compare charts/web (main) -> charts/web (apps/web.yaml)
values $values/values/prod.yaml
k8s 1.35 · checked: files
Restarts
INFO The pod template of Deployment/default/web changed at spec.template.spec.containers[name=app].image. The pods will restart. A restart is normal for an upgrade.
✓ PASS helm template rendered 1 Kubernetes object cleanly
✓ PASS values.yaml AST 1 keys: 0 proven by rendering, 1 read in templates
! WARN upgrade signals 1 named change
✓ PASS image tags 1 new or changed image tag checked
✓ PASS impact Compared rendered objects. The API server did not run, so a default the server adds is not in this comparison.
✓ PASS k8s 1.35 compatibility 0 removed APIs or selector breaks on K8s 1.35
INFO impact.restart
resource: Deployment/default/web
The pod template of Deployment/default/web changed at spec.template.spec.containers[name=app].image. The pods will restart. A restart is normal for an upgrade.
WARN helm.image.changed
1 container image changed. Deployment/default/web.template.spec.containers[0] app container moves from nginx:1.27 to nginx:1.28.
The render names a different image, including images on custom resources and images passed as container arguments. Whether that tag exists is a separate check.
verdict PASSED (exit 0) · 1896ms · 0 AI calls
Exit 0 kept the job green. Exit 1 stops the merge. The values file moved tag from 1.27 to 1.28. The action runs check-pr with the Kubernetes version you set.
Check the Helm chart a Flux HelmRelease renders. A Helm repository or an OCI chart is downloaded. A GitRepository in this checkout is read from Git. The released binary is v0.9.0.
The chart is charts/web in this repository. sources/git.yaml is a GitRepository named charts whose URL is a remote of this checkout. values/prod.yaml is a ConfigMap named prod-values. On main its values.yaml key sets tag to 1.27. The working tree sets 1.28.
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: web
spec:
chart:
spec:
chart: charts/web
sourceRef:
kind: GitRepository
name: charts
valuesFrom:
- kind: ConfigMap
name: prod-values
This sample is a v0.6.1 run. That binary used Kubernetes 1.33 because the command does not name a version. On main, pass --current-k8s or the check exits 2.
stageproof check --flux-file apps/web.yaml --current-git main --api-server off
! NOT TESTED LIVE. This job did not rehearse the upgrade. The files were checked. The upgrade itself was not.
stageproof PASSED exit 0
compare charts/web (main) -> charts/web (apps/web.yaml)
values HelmRelease values (ConfigMap/prod-values)
k8s 1.33 · checked: files
Restarts
INFO The pod template of Deployment/default/web changed at spec.template.spec.containers[name=app].image. The pods will restart. A restart is normal for an upgrade.
✓ PASS helm template rendered 1 Kubernetes object cleanly
✓ PASS values.yaml AST 2 keys: 0 proven by rendering, 2 read in templates
! WARN upgrade signals 1 named change
✓ PASS image tags 1 new or changed image tag checked
✓ PASS impact Compared rendered objects. The API server did not run, so a default the server adds is not in this comparison.
✓ PASS k8s 1.33 compatibility 0 removed APIs or selector breaks on K8s 1.33
INFO impact.restart
resource: Deployment/default/web
The pod template of Deployment/default/web changed at spec.template.spec.containers[name=app].image. The pods will restart. A restart is normal for an upgrade.
WARN helm.image.changed
1 container image changed. Deployment/default/web.template.spec.containers[0] app container moves from nginx:1.27 to nginx:1.28.
The render names a different image, including images on custom resources and images passed as container arguments. Whether that tag exists is a separate check.
verdict PASSED (exit 0) · 1495ms · 0 AI calls
apps/web.yaml in the working tree, and the same file on main.charts/web is read here. It is not cloned and it is not pulled. The revision is the one being compared. The branch named on the GitRepository is not fetched.prod-values is read from a YAML file in this repository. data["values.yaml"] is the values file. On main the tag is 1.27. In the working tree it is 1.28.The values line names the ConfigMap. It does not print the values. The image warning is the tag from that ConfigMap at each revision. --api-server off is why the impact line says the API server did not run. The default is auto.
| Field | Used as |
|---|---|
spec.chart or spec.chartRef | Exactly one of these. Both, or neither, is NOT CHECKED. |
spec.chart.spec | chart and sourceRef name a HelmRepository, an OCIRepository, or a GitRepository in this repository. kind defaults to HelmChart. version is the chart version for a Helm repository and is ignored for Git. An empty version is *. |
spec.chartRef | An OCIRepository or a HelmChart in this repository. ExternalArtifact is NOT CHECKED. |
spec.values | Inline values, applied after valuesFrom entries that have no targetPath. |
spec.valuesFrom | ConfigMap data, or Secret stringData and then data. valuesKey defaults to values.yaml. Entries merge in order. A later map overwrites an earlier one. targetPath is applied after spec.values and overwrites that path, including inline values. literal: true keeps the string. |
spec.releaseName and spec.targetNamespace | The Helm release name is releaseName, or targetNamespace-name when targetNamespace is set, or the HelmRelease name. A name longer than 53 characters is shortened. The namespace is targetNamespace, then metadata.namespace, then default. |
spec.upgrade.crds | Skip, Create, or CreateReplace. When the field is omitted the check uses Skip: CRDs under crds/ are neither installed nor upgraded. The helm-controller type comment says that. The user guide lists Create as the default for both install and upgrade. This check is an upgrade, so it follows the type comment. |
A HelmRepository is downloaded with helm pull. An OCIRepository uses spec.url and one of tag, semver, or digest. spec.insecure: true is an HTTP registry. A chart valuesFiles list is merged in order, last wins, and the chart values.yaml is not included unless it is listed. A missing file in that list is NOT CHECKED when ignoreMissingValuesFiles is false, which is the default. The chart is not rendered from its defaults.
A valuesFrom object that is not a file in this repository is flux.values.unreadable. The chart is still rendered. The result stays PASSED, including after a rehearsal. The finding names the reference and does not print a value. optional: true skips a missing object. A missing valuesKey is still named. A Secret with sops or ENC[ is not decrypted. The same finding names it.
These inputs are NOT CHECKED. Nothing is cloned and no chart defaults are rendered in their place:
spec.chart and spec.chartRef both set, or neither set.ExternalArtifact, a Bucket source, or another chart kind.tag, semver, and digest on an OCIRepository.valuesFiles entry that is missing when ignoreMissingValuesFiles is false.${...} in the chart name, the version, the repository URL, or a source name is NOT CHECKED unless templatePlaceholders sets that token. The same token in values, a name, or targetPath becomes stageproof-placeholder and the report says helm.config.placeholder_used.
Flux reconciles the HelmRelease after the pull request merges. Run the check on the pull request, before that reconcile. This run named a ConfigMap in valuesFrom and set spec.upgrade.crds to CreateReplace. The chart had no crds/ change, so the report has no CRD line. The values line is the ConfigMap. stageproof check-pr also follows the GitRepository, a valuesFrom file, and a file under the chart path when that GitRepository is a remote of this checkout. A chart path in another Git repository is not selected by a local file of the same name. The same check is stageproof/action@v1.
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: web
spec:
upgrade:
crds: CreateReplace
chart:
spec:
chart: charts/web
sourceRef:
kind: GitRepository
name: charts
valuesFrom:
- kind: ConfigMap
name: prod-values
stageproof check-pr --current-git main --current-k8s 1.35 --api-server off
! NOT TESTED LIVE. This job did not rehearse the upgrade. The files were checked. The upgrade itself was not.
stageproof PASSED exit 0
compare charts/web (main) -> charts/web (apps/web.yaml)
values HelmRelease values (ConfigMap/prod-values)
k8s 1.35 · checked: files
Restarts
INFO The pod template of Deployment/default/web changed at spec.template.spec.containers[name=app].image. The pods will restart. A restart is normal for an upgrade.
✓ PASS helm template rendered 1 Kubernetes object cleanly
✓ PASS values.yaml AST 1 keys: 0 proven by rendering, 1 read in templates
! WARN upgrade signals 1 named change
✓ PASS image tags 1 new or changed image tag checked
✓ PASS impact Compared rendered objects. The API server did not run, so a default the server adds is not in this comparison.
✓ PASS k8s 1.35 compatibility 0 removed APIs or selector breaks on K8s 1.35
INFO impact.restart
resource: Deployment/default/web
The pod template of Deployment/default/web changed at spec.template.spec.containers[name=app].image. The pods will restart. A restart is normal for an upgrade.
WARN helm.image.changed
1 container image changed. Deployment/default/web.template.spec.containers[0] app container moves from nginx:1.27 to nginx:1.28.
The render names a different image, including images on custom resources and images passed as container arguments. Whether that tag exists is a separate check.
verdict PASSED (exit 0) · 1436ms · 0 AI calls
Exit 0 kept the job green. Exit 1 stops the merge, so Flux does not reconcile that commit. The ConfigMap moved tag from 1.27 to 1.28.
Stageproof does not read a Kargo Stage file. The gate is a command. Run it on the pull request, and run it again as a Stage verification so Freight that fails the check cannot move to the next Stage.
v0.9.0 image, which includes Helm. This job sets --api-server off because that image does not start an API server.Kargo sees a commit after it merges. Check that commit on the pull request, before the Warehouse picks it up. An Application change is the Argo CD gate. A HelmRelease change is the Flux gate. Either one is stageproof/action@v1.
After a Promotion succeeds, Kargo runs the AnalysisTemplates named on the Stage. A Job that exits 0 is a successful measurement. Any other exit code fails that measurement. Freight that is not verified in this Stage is not eligible for the next Stage. The Stage below names one template. The template runs the released image. The image starts stageproof, so the arguments are the check.
apiVersion: kargo.akuity.io/v1alpha1
kind: Stage
metadata:
name: dev
namespace: guestbook
spec:
verification:
analysisTemplates:
- name: stageproof
apiVersion: argoproj.io/v1alpha1
kind: AnalysisTemplate
metadata:
name: stageproof
namespace: guestbook
spec:
metrics:
- name: stageproof
provider:
job:
spec:
backoffLimit: 1
template:
spec:
restartPolicy: Never
containers:
- name: stageproof
image: ghcr.io/stageproof/stageproof:v0.9.0
args:
- check
- --repo
- https://kubernetes-sigs.github.io/metrics-server/
- --chart
- metrics-server
- --from
- "3.12.2"
- --to
- "3.13.0"
- --current-k8s
- "1.35"
- --api-server
- "off"
stageproof check --repo https://kubernetes-sigs.github.io/metrics-server/ --chart metrics-server --from 3.12.2 --to 3.13.0 --current-k8s 1.35 --api-server off
! NOT TESTED LIVE. This job did not rehearse the upgrade. The files were checked. The upgrade itself was not.
stageproof PASSED exit 0
compare metrics-server@3.12.2 -> metrics-server@3.13.0
k8s 1.35 · checked: files
Restarts
INFO The pod template of Deployment/stageproof-check/stageproof-rel-metrics-server changed at spec.template.spec.containers[name=metrics-server].image. The pods will restart. A restart is normal for an upgrade.
✓ PASS helm template rendered 9 Kubernetes objects cleanly
✓ PASS values.yaml AST no custom -f overlay passed (default chart values verified)
! WARN upgrade signals 2 named changes
✓ PASS image tags 1 new or changed image tag checked
✓ PASS impact Compared rendered objects. The API server did not run, so a default the server adds is not in this comparison.
✓ PASS k8s 1.35 compatibility 0 removed APIs or selector breaks on K8s 1.35
INFO impact.restart
resource: Deployment/stageproof-check/stageproof-rel-metrics-server
The pod template of Deployment/stageproof-check/stageproof-rel-metrics-server changed at spec.template.spec.containers[name=metrics-server].image. The pods will restart. A restart is normal for an upgrade.
WARN helm.release.app_version_changed
appVersion moves from 0.7.2 to 0.8.0. The image that the chart runs may change with it.
This is the chart's declared application version. It is not a test that the registry tag exists.
WARN helm.image.changed
1 container image changed. Deployment/stageproof-check/stageproof-rel-metrics-server.template.spec.containers[0] metrics-server container moves from registry.k8s.io/metrics-server/metrics-server:v0.7.2 to registry.k8s.io/metrics-server/metrics-server:v0.8.0.
The render names a different image, including images on custom resources and images passed as container arguments. Whether that tag exists is a separate check.
verdict PASSED (exit 0) · 2521ms · 0 AI calls
This run exited 0, so the Job would succeed and the Freight could move on. Exit 1 fails the Job, the AnalysisRun, and the verification. The report says NOT TESTED LIVE. Verification here is the file check. It is not a rehearsal in the Stage's cluster. Put the chart and versions your Stage promotes in --repo, --chart, --from, and --to. An Application or a HelmRelease in the Freight commit uses --argocd-file or --flux-file with --current-git instead.
Check everything a pull request changes with one command. You do not tell Stageproof which chart changed. It reads the git diff and works that out.
Pass the branch that the pull request will merge into. On main, also pass --current-k8s, pass --cluster-facts, or set currentKubernetes on that branch. A pull request that changes no chart still exits 0 without a version.
stageproof check-pr --current-git main
One Application prints the same report as stageproof check --argocd-file. The sample is in Check an Argo CD Application. A change to a values file the Application names is enough. The Application file itself does not have to change. A Flux HelmRelease works the same way. The sample is in Check a Flux HelmRelease. A change to the source object or a valuesFrom file is enough. A file under a chart path counts when that GitRepository is a remote of this checkout. A HelmRelease whose Git repository is not this checkout is not selected by a local file of the same path.
Stageproof lists the files that differ between the target branch and your branch, then handles each file by its type.
0.| Changed file | What Stageproof checks |
|---|---|
An Argo CD Application file (.yaml, .yml, or .yaml.tmpl) | That Application. A remote chart is pulled at each revision. A Git path in this checkout is read from each revision. An ApplicationSet is NOT CHECKED. |
A values file an Application in this repository names, including a $ref/ path | That Application, with the file read on the target branch and on your branch. |
A Flux HelmRelease (.yaml or .yml) | That HelmRelease. A Helm repository or an OCI chart is pulled at each revision. A GitRepository in this checkout is read from each revision. Another Git repository is NOT CHECKED. |
A source object, a valuesFrom ConfigMap or Secret, or a file under a chart path whose GitRepository is a remote of this checkout | That HelmRelease, with each side read at its own revision. A chart path whose GitRepository is another repository does not select that HelmRelease. |
| Any file inside a chart directory, including a file the pull request deleted | The whole chart on the target branch against the chart in your branch. Stageproof finds the chart by walking up to the nearest Chart.yaml. The file does not have to exist on the branch you are checking. A change inside a subchart under charts/ is checked as a change to the parent chart. |
| Any other file | Nothing. The file is ignored. |
For a chart in your repository, Stageproof uses the chart's own values.yaml. It does not search the repository for values-prod.yaml or any other file. A key that only your production file sets is never looked at until .stageproof.yaml lists that file. An Argo CD Application and a Flux HelmRelease are different: they use the values files those manifests already name.
If the pull request changes no chart, no Application, and no HelmRelease, Stageproof prints one line and exits 0. There was nothing to check, so the pipeline stays green:
stageproof check-pr: no Helm charts, Argo CD Applications, or Flux HelmReleases modified between main and HEAD.
Each chart is checked in turn and each prints its own report. The result of the pull request is the worst of those results: BLOCKED, then NOT CHECKED, then PASSED, then PROVEN. PASSED and PROVEN both exit 0. PASSED is reported when any chart was not rehearsed.
--comment-file writes one Markdown file for the whole pull request. With one check it is that report. With several it starts with a summary, followed by every report in full:
## Stageproof: `BLOCKED` (exit `1`) across 3 checks | Compared | Values | Result | |---|---|---| | `main:charts/billing` → `charts/billing` | `charts/billing/values.yaml` | **PASSED** | | `main:charts/webapp` → `charts/webapp` | `charts/webapp/values-prod.yaml` | **BLOCKED** | | `main:charts/webapp` → `charts/webapp` | `charts/webapp/values.yaml` | **PASSED** |
--out writes one JSON file with the overall verdict, the exit_code, and a reports list that holds every report.
Stageproof reads Git. It does not call Renovate, Dependabot, GitHub, or GitLab to find out what changed. A pull request from a person and a pull request from a bot are checked the same way.
Most charts are deployed more than once, with a different values file for each environment. Tell Stageproof which values files belong to a chart, and a pull request check covers every one of them.
values-prod.yaml and values-staging.yaml..stageproof.yaml file in the top directory of the repository.A pull request check uses the chart's own values.yaml only when that is the only values file. values-*.yaml and files in ci/ have to be listed in charts[].valuesFiles. If one of them is missing from that list, the result is NOT CHECKED (exit 2) and the report names the file. Stageproof does not guess which file you deploy, and it does not treat the chart default as that file.
charts:
- name: webapp
path: charts/webapp
valuesFiles:
- charts/webapp/values-prod.yaml
- charts/webapp/values.yaml
Paths are relative to the top directory of the repository. stageproof init writes this list for you: it finds every chart, and for each chart every values.yaml, values-*.yaml, and file in a ci directory.
The branch upgrades the webapp chart to 2.0.0, which renamed config.logLevel. Only values-prod.yaml sets that key. This sample is a v0.6.1 run. That binary used Kubernetes 1.33 because the command does not name a version and the file has no currentKubernetes. On main, pass --current-k8s or the check exits 2.
stageproof check-pr --current-git main --api-server off
stageproof BLOCKED exit 1
compare main:charts/webapp -> charts/webapp
values charts/webapp/values-prod.yaml
k8s 1.33 · checked: files
Values
ERROR Values key `config.logLevel` was consumed in baseline chart but is silently ignored in upgraded chart.
Restarts
INFO The pod template of Deployment/default/web changed at spec.template.spec.containers[name=app].env[name=LOG_LEVEL].value. The pods will restart. A restart is normal for an upgrade.
✓ PASS helm template rendered 1 Kubernetes object cleanly
✕ FAIL values.yaml AST 1 keys: 1 proven by rendering, 0 read in templates
! WARN upgrade signals 1 named change
✓ PASS image tags no new or changed image
✓ PASS impact Compared rendered objects. The API server did not run, so a default the server adds is not in this comparison.
✓ PASS k8s 1.33 compatibility 0 removed APIs or selector breaks on K8s 1.33
ERROR helm.values.silently_dropped
charts/webapp/values-prod.yaml resource: config.logLevel
Values key `config.logLevel` was consumed in baseline chart but is silently ignored in upgraded chart.
INFO impact.restart
resource: Deployment/default/web
The pod template of Deployment/default/web changed at spec.template.spec.containers[name=app].env[name=LOG_LEVEL].value. The pods will restart. A restart is normal for an upgrade.
WARN helm.release.version_span
Chart version moves from 1.4.0 to 2.0.0, a new major version.
Stageproof does not read that project's upgrade notes. A skip of more than one minor version, or a new major version, is named here and does not block.
verdict BLOCKED (exit 1) · 520ms · 0 AI calls
! NOT TESTED LIVE. This job did not rehearse the upgrade. The files were checked. The upgrade itself was not.
stageproof PASSED exit 0
compare main:charts/webapp -> charts/webapp
values charts/webapp/values.yaml
k8s 1.33 · checked: files
✓ PASS helm template rendered 1 Kubernetes object cleanly
✓ PASS values.yaml AST 2 keys: 0 proven by rendering, 2 read in templates
! WARN upgrade signals 1 named change
✓ PASS image tags no new or changed image
✓ PASS impact Compared rendered objects. The API server did not run, so a default the server adds is not in this comparison.
✓ PASS k8s 1.33 compatibility 0 removed APIs or selector breaks on K8s 1.33
WARN helm.release.version_span
Chart version moves from 1.4.0 to 2.0.0, a new major version.
Stageproof does not read that project's upgrade notes. A skip of more than one minor version, or a new major version, is named here and does not block.
verdict PASSED (exit 0) · 373ms · 0 AI calls
There are two reports, one for each values file. The values line tells them apart. The check with the chart defaults passes. The check with values-prod.yaml is blocked, because production sets a key that chart 2.0.0 no longer reads. The pull request as a whole is BLOCKED.
stageproof check with -f twice.values.yaml.stageproof check-pr. stageproof check uses the files you pass with -f.Tell Stageproof which Kubernetes version your cluster runs. It then reports any resource in the chart that uses an API your cluster no longer serves.
--current-k8s, with --cluster-facts, or once in the configuration file. The flag wins, then the facts file, then the configuration file. Without any of them, the check exits 2.--cluster-facts has no file, or when you run stageproof facts export. See Read a cluster.The ratelimit chart contains a FlowSchema written for the API version flowcontrol.apiserver.k8s.io/v1beta3. Kubernetes removed that version in 1.32. Your cluster runs 1.32.
This sample uses --api-server off, so the removed API comes from the built-in table.
stageproof check --new-chart ./ratelimit --current-k8s 1.32 --api-server off
stageproof BLOCKED exit 1
compare (single-chart check) -> ./ratelimit
k8s 1.32 · checked: files
✓ PASS helm template rendered 1 Kubernetes object cleanly
✓ PASS values.yaml AST no custom -f overlay passed (default chart values verified)
✕ FAIL k8s 1.32 compatibility 1 removed API or immutable upgrade blocker
ERROR k8s.api.removed
FlowSchema/default/stageproof-rel-tenants
API `flowcontrol.apiserver.k8s.io/v1beta3` (FlowSchema) was removed in Kubernetes 1.32 (target is 1.32).
Migrate resource to `flowcontrol.apiserver.k8s.io/v1`.
verdict BLOCKED (exit 1) · 510ms · 0 AI calls
A cluster on Kubernetes 1.32 rejects this resource. The report names the resource, the API version it uses, and the version to move to.
On a cluster that runs 1.31, the same chart still works. Stageproof then reports WARN k8s.api.deprecated and the result is not blocked.
--api-server auto is the default. It starts kube-apiserver and etcd for the newest published patch of --current-k8s, applies the current objects, and dry-runs the new ones. The result word does not change: without --live a clean upgrade is still PASSED, and the log still says NOT TESTED LIVE. The line checked: names the patch that ran.
This run is the Job fixture in the repository. The pod template image changes. Kubernetes rejects that update.
stageproof check \ --current-chart corpus/incidents/job-pod-template-changed/before \ --new-chart corpus/incidents/job-pod-template-changed/after \ --current-k8s 1.35
stageproof BLOCKED exit 1
compare corpus/incidents/job-pod-template-changed/before -> corpus/incidents/job-pod-template-changed/after
k8s 1.35 · checked: files, API server 1.35.0
✓ PASS helm template rendered 1 Kubernetes object cleanly
✓ PASS values.yaml AST no custom -f overlay passed (default chart values verified)
! WARN upgrade signals 1 named change
✕ FAIL API server 1.35.0 1 rejection
✓ PASS k8s 1.35 compatibility current Kubernetes was checked by API server 1.35.0
WARN helm.image.changed
1 container image changed. Job/default/migrate.template.spec.containers[0] job container moves from busybox:1.36 to busybox:1.37.
The render names a different image, including images on custom resources and images passed as container arguments. Whether that tag exists is a separate check.
ERROR k8s.apply.immutable_field
resource: Job/default/migrate
Kubernetes rejected the update. `spec.template` is immutable.
verdict BLOCKED (exit 1) · 2668ms · 0 AI calls
Helm 3.22.1 drops a field the schema does not declare, warns, and the upgrade succeeds. A new Helm 4 install uses server-side apply and rejects that field. An upgrade of a release Helm 3 created stays client-side, so the same field stays a warning unless you pass --server-side-apply. Helm's upgrade notes describe that latch.
helm template --kube-version does. Charts that choose an API version based on the cluster version render the way they would on your cluster.| API version | Kinds | Removed in | Use this API version |
|---|---|---|---|
extensions/v1beta1 | All | 1.22 | apps/v1 or networking.k8s.io/v1 |
networking.k8s.io/v1beta1 | Ingress, IngressClass | 1.22 | networking.k8s.io/v1 |
rbac.authorization.k8s.io/v1beta1 | All | 1.22 | rbac.authorization.k8s.io/v1 |
apiextensions.k8s.io/v1beta1 | CustomResourceDefinition | 1.22 | apiextensions.k8s.io/v1 |
admissionregistration.k8s.io/v1beta1 | All | 1.22 | admissionregistration.k8s.io/v1 |
batch/v1beta1 | CronJob | 1.25 | batch/v1 |
policy/v1beta1 | PodDisruptionBudget | 1.25 | policy/v1 |
policy/v1beta1 | PodSecurityPolicy | 1.25 | Pod Security Admission |
autoscaling/v2beta1 | HorizontalPodAutoscaler | 1.25 | autoscaling/v2 |
autoscaling/v2beta2 | HorizontalPodAutoscaler | 1.26 | autoscaling/v2 |
flowcontrol.apiserver.k8s.io/v1beta1 | All | 1.26 | flowcontrol.apiserver.k8s.io/v1 |
storage.k8s.io/v1beta1 | CSIStorageCapacity | 1.27 | storage.k8s.io/v1 |
flowcontrol.apiserver.k8s.io/v1beta2 | All | 1.29 | flowcontrol.apiserver.k8s.io/v1 |
networking.k8s.io/v1alpha1 | ClusterCIDR | 1.31 | networking.k8s.io/v1 ServiceCIDR |
flowcontrol.apiserver.k8s.io/v1beta3 | All | 1.32 | flowcontrol.apiserver.k8s.io/v1 |
admissionregistration.k8s.io/v1beta1 | ValidatingAdmissionPolicy, ValidatingAdmissionPolicyBinding | 1.34 | admissionregistration.k8s.io/v1 |
When a row names the kind of a resource, that row decides. A row for all kinds applies only to kinds that have no row of their own.
APIs added by a CRD, for example a ServiceMonitor, are not in this list. Stageproof does not judge their versions.
To look ahead to the version you plan to upgrade the cluster to, see Prepare for a Kubernetes cluster upgrade.
stageproof facts export reads a cluster and writes a JSON file. stageproof check --cluster-facts can do that read itself and skip the file. The file is not read from git. The released binary is v0.9.0.
--helm-releases.stringData. The calls are get and list. The default role is deploy/facts-clusterrole.yaml and it does not include Secrets. --helm-releases also needs deploy/facts-helm-releases-clusterrole.yaml.One check can read the cluster and use the result. No facts file is written. --kubeconfig, --context, and --helm-releases are the same switches as on facts export. The calls are get and list.
stageproof check --current-chart ./old --new-chart ./new --cluster-facts
With no --kubeconfig and no --context, v0.6.1 uses the kubeconfig kubectl uses for facts export. That is $KUBECONFIG when it is set, and ~/.kube/config otherwise, and the current-context in that file. Pass either flag to choose a different file or context. --out is still required. v0.6.0 required both flags.
stageproof facts export --out facts.json
This run named a kubeconfig and a context. It used the local API server, with --helm-releases. The context name was facts.
stageproof facts export --kubeconfig <kubeconfig> --context facts --out /tmp/sp-facts.json --helm-releases
1.35.0 /tmp/sp-facts.json
The file it wrote:
{
"schema_version": 1,
"server_version": "1.35.0",
"nodes": [
{
"name": "worker-a",
"architecture": "arm64",
"operating_system": "linux"
},
{
"name": "worker-b",
"architecture": "amd64",
"operating_system": "linux"
}
],
"crds": [
{
"name": "widgets.example.com",
"served_versions": [
"v1"
],
"storage_version": "v1",
"stored_versions": [
"v1"
],
"spec": {
"group": "example.com",
"names": {
"plural": "widgets",
"singular": "widget",
"kind": "Widget",
"listKind": "WidgetList"
},
"scope": "Namespaced",
"versions": [
{
"name": "v1",
"served": true,
"storage": true,
"schema": {
"openAPIV3Schema": {
"type": "object",
"properties": {
"size": {
"type": "integer"
}
}
}
}
}
],
"conversion": {
"strategy": "None"
}
}
}
],
"validating_admission_policies": [],
"validating_admission_policy_bindings": [],
"storage_classes": [
"fast"
],
"charts": [
{
"source": "helm-release",
"name": "web",
"version": "1.2.3",
"app_version": "9.9.9",
"release": "web",
"namespace": "default"
}
]
}
An Application or a HelmRelease that is not installed is an empty list, not an error. A forbidden request exits 2. The command does not print PROVEN, PASSED, BLOCKED, or NOT CHECKED.
--current-k8s wins. When that flag is absent, the server version in the file wins over currentKubernetes in .stageproof.yaml. When the file is absent too, the check exits 2. The same file preloads its custom resource definitions into the local API server, passes stored_versions into the CRD check, and turns each node's operating system and architecture into a required image platform. No nodes leaves the platform at linux/amd64.
This check did not pass --current-k8s. The version is the one in the file.
stageproof check --before before.yaml --after after.yaml --cluster-facts /tmp/sp-facts.json --api-server off --offline
! NOT TESTED LIVE. This job did not rehearse the upgrade. The files were checked. The upgrade itself was not. stageproof PASSED exit 0 compare before.yaml -> after.yaml k8s 1.35 · checked: rendered manifests ○ SKIP required values gate Skipped. These inputs are rendered manifests, not Helm charts. ○ SKIP helm template Skipped. The manifests were already rendered. ○ SKIP values.yaml AST Skipped. There is no chart template to read. ○ SKIP upgrade signals Skipped. There is no chart to compare. ✓ PASS image tags Registry checks skipped (--offline). --api-server is unchanged. ✓ PASS impact Compared rendered objects. The API server did not run, so a default the server adds is not in this comparison. ✓ PASS k8s 1.35 compatibility 0 removed APIs or selector breaks on K8s 1.35 verdict PASSED (exit 0) · 0ms · 0 AI calls
check-pr takes the same flag and passes that path to each chart. It does not look for facts.json in the pull request.
The first lines of a blocked report name a delete or a CRD break. A restart is named and does not block. The samples below were produced by this source with --api-server off.
This is the pvc-removed-from-chart fixture. The current chart renders a claim named data. The new chart does not. Plain Helm deletes that claim on upgrade, and the data on it goes with it.
stageproof check \ --current-chart corpus/incidents/pvc-removed-from-chart/before \ --new-chart corpus/incidents/pvc-removed-from-chart/after \ --current-k8s 1.35 \ --api-server off
! Helm will delete PersistentVolumeClaim/default/data. The data on that claim goes with it.
stageproof BLOCKED exit 1
compare corpus/incidents/pvc-removed-from-chart/before -> corpus/incidents/pvc-removed-from-chart/after
k8s 1.35 · checked: files
Deletes
ERROR Helm will delete PersistentVolumeClaim/default/data. The data on that claim goes with it.
✓ PASS helm template rendered 1 Kubernetes object cleanly
✓ PASS values.yaml AST no custom -f overlay passed (default chart values verified)
✓ PASS image tags no new or changed image
✕ FAIL impact Compared rendered objects. The API server did not run, so a default the server adds is not in this comparison.
✓ PASS k8s 1.35 compatibility 0 removed APIs or selector breaks on K8s 1.35
ERROR impact.delete.pvc
PersistentVolumeClaim/default/data
Helm will delete PersistentVolumeClaim/default/data. The data on that claim goes with it.
verdict BLOCKED (exit 1) · 119ms · 0 AI calls
The impact line says the API server did not run, so a default the server would add is not in the comparison. An object annotated helm.sh/resource-policy: keep is not reported as deleted. Helm leaves that object in the cluster.
The same command with --comment-file writes the Markdown comment. The summary is there too, before the check table:
## ❌ Stageproof Upgrade Gate: `BLOCKED` (exit `1`) > ⚠️ Helm will delete PersistentVolumeClaim/default/data. The data on that claim goes with it. | Compare | Target K8s | Checked | Duration | |---|---|---|---| | `corpus/incidents/pvc-removed-from-chart/before` → `corpus/incidents/pvc-removed-from-chart/after` | `1.35` | `files` | `114ms` · `0 AI calls` | ### 🗑️ Deletes - ❌ **ERROR** Helm will delete PersistentVolumeClaim/default/data. The data on that claim goes with it. ### Checks | Check | Status | Summary | |---|---|---| | `helm template` | ✅ PASS | rendered 1 Kubernetes object cleanly | | `values.yaml AST` | ✅ PASS | no custom -f overlay passed (default chart values verified) | | `image tags` | ✅ PASS | no new or changed image | | `impact` | ❌ FAIL | Compared rendered objects. The API server did not run, so a default the server adds is not in this comparison. | | `k8s 1.35 compatibility` | ✅ PASS | 0 removed APIs or selector breaks on K8s 1.35 | <details open> <summary>📋 <b>Deterministic Findings (1: 1 blocker)</b></summary> | Severity | Rule | Target | Detail | |---|---|---|---| | ❌ BLOCKER | `impact.delete.pvc` | `PersistentVolumeClaim/default/data` | Helm will delete PersistentVolumeClaim/default/data. The data on that claim goes with it. | </details> --- <sub>Checked by [Stageproof](https://stageproof.github.io/stageproof/) · 0 AI calls</sub>
This is the crd-field-type-changed fixture. The current chart renders a Widget with spec.size set to a string. The new CRD changes that field to an integer. The new chart also stops rendering the Widget, so the report warns about that delete. The block is the field.
stageproof check \ --current-chart corpus/incidents/crd-field-type-changed/before \ --new-chart corpus/incidents/crd-field-type-changed/after \ --current-k8s 1.35 \ --api-server off
! Widget/default/demo uses spec.size, and that field changed (type) on widgets.example.com. The object does not match the new schema.
stageproof BLOCKED exit 1
compare corpus/incidents/crd-field-type-changed/before -> corpus/incidents/crd-field-type-changed/after
k8s 1.35 · checked: files
Deletes
WARN Helm will delete objects the new chart does not render: Widget/default/demo.
CRDs
ERROR Widget/default/demo uses spec.size, and that field changed (type) on widgets.example.com. The object does not match the new schema.
✓ PASS helm template rendered 2 Kubernetes objects cleanly
✓ PASS values.yaml AST no custom -f overlay passed (default chart values verified)
✓ PASS image tags no new or changed image
✕ FAIL impact Compared rendered objects. The API server did not run, so a default the server adds is not in this comparison.
✓ PASS k8s 1.35 compatibility 0 removed APIs or selector breaks on K8s 1.35
WARN impact.delete
Helm will delete objects the new chart does not render: Widget/default/demo.
ERROR crd.existing_object_invalid
Widget/default/demo
Widget/default/demo uses spec.size, and that field changed (type) on widgets.example.com. The object does not match the new schema.
verdict BLOCKED (exit 1) · 114ms · 0 AI calls
The same type change with no object that uses the field is a warning, crd.schema.incompatible. A description change, a new optional field, or a wider enum is not reported.
An image change restarts the pods. That is normal for an upgrade. The result stays PASSED. The restart line names the field. It does not repeat the image value. The image warning in the same report is a separate check, and that line does name the tags.
stageproof check \ --current-chart testdata/image/base \ --new-chart testdata/image/head \ --current-k8s 1.33 \ --api-server off
! NOT TESTED LIVE. This job did not rehearse the upgrade. The files were checked. The upgrade itself was not.
stageproof PASSED exit 0
compare testdata/image/base -> testdata/image/head
k8s 1.33 · checked: files
Restarts
INFO The pod template of Deployment/default/demo changed at spec.template.spec.containers[name=app].image. The pods will restart. A restart is normal for an upgrade.
✓ PASS helm template rendered 1 Kubernetes object cleanly
✓ PASS values.yaml AST no custom -f overlay passed (default chart values verified)
! WARN upgrade signals 1 named change
✓ PASS image tags 1 new or changed image tag checked
✓ PASS impact Compared rendered objects. The API server did not run, so a default the server adds is not in this comparison.
✓ PASS k8s 1.33 compatibility 0 removed APIs or selector breaks on K8s 1.33
INFO impact.restart
resource: Deployment/default/demo
The pod template of Deployment/default/demo changed at spec.template.spec.containers[name=app].image. The pods will restart. A restart is normal for an upgrade.
WARN helm.image.changed
1 container image changed. Deployment/default/demo.template.spec.containers[0] app container moves from nginx:1.27-alpine to nginx:1.28-alpine.
The render names a different image, including images on custom resources and images passed as container arguments. Whether that tag exists is a separate check.
verdict PASSED (exit 0) · 1253ms · 0 AI calls
Before the check list, the report prints Deletes, CRDs, Privilege, Exposure, Values, Restarts, and Not checked. A section with nothing in it is left out. The lines are the finding messages and the reasons a check did not finish. Findings after the check list are ordered deletes, CRD changes, privilege, exposure, values, restarts, capacity, then everything else. A blocker whose rule starts with impact.delete or crd. is also printed on the first lines. The rule list is in Findings.
Find out which charts will stop working after you upgrade the cluster itself to a newer Kubernetes version. Stageproof warns you while the chart still works, so you can migrate it first.
| Flag | Meaning | A removed API becomes |
|---|---|---|
--current-k8s | The Kubernetes version your cluster runs today. | An ERROR. The chart is broken now. |
--next-k8s | The Kubernetes version you plan to upgrade the cluster to. | A WARN. The chart works now and will break after the cluster upgrade. |
Your cluster runs Kubernetes 1.31. You plan to upgrade it to 1.32. You want to know whether the ratelimit chart survives that.
stageproof check --new-chart ./ratelimit --current-k8s 1.31 --next-k8s 1.32
stageproof PASSED exit 0
compare (single-chart check) -> ./ratelimit
k8s 1.31 next 1.32 · checked: files
✓ PASS helm template rendered 1 Kubernetes object cleanly
✓ PASS values.yaml AST no custom -f overlay passed (default chart values verified)
✓ PASS k8s 1.31 compatibility 0 blockers (1 deprecation, EOL, or CRD warning)
WARN k8s.api.eol_blocker
FlowSchema/default/stageproof-rel-tenants
API `flowcontrol.apiserver.k8s.io/v1beta3` (FlowSchema) works on 1.31, but is REMOVED in next EOL target Kubernetes 1.32.
Migrate to `flowcontrol.apiserver.k8s.io/v1` before upgrading cluster to 1.32.
verdict PASSED (exit 0) · 46ms · 0 AI calls
The result is not blocked, because the chart works on the cluster you have. The k8s.api.eol_blocker warning is the finding to act on: this resource stops working when the cluster reaches 1.32. Migrate it to flowcontrol.apiserver.k8s.io/v1 before you upgrade the cluster.
The k8s line shows both versions: 1.31 next 1.32.
This command checks one chart. To review a whole cluster before an upgrade, run it once for each chart you deploy, with the values you deploy it with.
To get the warning on every future change as well, set nextKubernetes in the configuration file.
Add --live to carry out the upgrade for real, in a temporary Kubernetes cluster on the machine that runs the command. This is the only way to reach the result PROVEN. Run it with the v0.9.0-live image. That image already contains kind, kubectl, and Helm. The host needs a running Docker daemon. Stageproof does not install those tools.
helm upgrade, a failed smoke command, and a failed helm rollback.v0.9.0-live image and a Docker daemon on the host. The container receives the host socket. Stageproof does not install Docker, kind, kubectl, or Helm.The default check and --live are not the same Kubernetes.
--api-server auto) downloads kube-apiserver, etcd, and kubectl into the user cache and starts an empty API server with no nodes. That is not a cluster, and it does not use Docker or kind. --offline does not download those binaries.--live starts a real node with the kind binary inside v0.9.0-live. That node is a container. Helm, also inside the image, installs the chart. Stageproof does not download kind, and it does not download the API server binaries for this step.The usual command is the image. ghcr.io/stageproof/stageproof:v0.9.0-live contains Stageproof, Helm, Git, kind, kubectl, and the Docker client. You do not install those inside the container. The kind node is started by the Docker daemon on the host, so the container is given the host socket. The plain image ghcr.io/stageproof/stageproof:v0.9.0 does not contain kind or kubectl, so it cannot rehearse.
If you run the stageproof binary on the host instead, docker, kind, kubectl, and helm must already be on PATH. Stageproof does not install them. When one is missing, the file check still runs and the report says NOT TESTED LIVE.
docker run --rm --network host --user 0 \ --security-opt label=disable \ -v /var/run/docker.sock:/var/run/docker.sock \ -v "$PWD:/work" -w /work \ ghcr.io/stageproof/stageproof:v0.9.0-live \ check --current-chart ./webapp-1.4.0 --new-chart ./webapp-1.5.0 --current-k8s 1.35 --live
--live starts a real Kubernetes node. That node is a container, and it has to set up its own networking and start more containers. An unprivileged container is blocked from doing those things, so kind has nothing to run the node with. The job also does not install Docker or kind when they are absent. The file check still runs, and the report says NOT TESTED LIVE.
--live does not doPATH, or the copies inside v0.9.0-live.kube-apiserver for the rehearsal. That download belongs to --api-server auto, the empty API server used by the file check.This sample is a v0.6.1 run. That binary used Kubernetes 1.33 because the command does not name a version. On main, pass --current-k8s or the check exits 2 before a cluster starts.
stageproof check --current-chart ./webapp-1.4.0 --new-chart ./webapp-1.5.0 -f values-prod.yaml --live
stageproof PROVEN exit 0 compare ./webapp-1.4.0 -> ./webapp-1.5.0 values values-prod.yaml k8s 1.33 · checked: files, live cluster ✓ PASS helm template rendered 1 Kubernetes object cleanly ✓ PASS values.yaml AST 2 keys: 0 proven by rendering, 2 read in templates ✓ PASS k8s 1.33 compatibility 0 removed APIs or selector breaks on K8s 1.33 ✓ PASS kind cluster boot isolated cluster `stageproof-ephemeral` ready on Kubernetes v1.33.12 ✓ PASS baseline install baseline revision 1 healthy in 7.3s ✓ PASS in-place helm upgrade upgraded cleanly in 400ms (0 restarts) ✓ PASS rollback rehearsal reverted to revision 1 cleanly in 200ms verdict PROVEN (exit 0) · 41393ms · 0 AI calls
BLOCKED and does not create a cluster.stageproof-ephemeral, on the Kubernetes version your cluster runs. This is most of the run time. Kind pulls a node image through Docker. Stageproof does not install kind or Docker.helm upgrade --wait. If the new chart has a crds directory, those CRDs are applied first. Stageproof then checks that every pod is ready and that no container restarted..stageproof.yaml lists them. They run after the upgrade and before the rollback. Each command is sh -c, with KUBECONFIG pointed at the temporary cluster and STAGEPROOF_NAMESPACE and STAGEPROOF_RELEASE set. A failure is live.smoke_failed, and Stageproof rolls the release back.The commands live in .stageproof.yaml. This file asks whether the Deployment is there after the upgrade.
currentKubernetes: "1.33"
smoke:
- name: deploy
run: kubectl get deploy -n "$STAGEPROOF_NAMESPACE"
timeout: 30s
stageproof check --api-server off --current-chart ./webapp-1.0.0 --new-chart ./webapp-1.1.0 --live --cluster-name sp-docs-smoke-ok --timeout 90s
! kind cluster sp-docs-smoke-ok ! This rehearsal used an empty cluster. No existing data was in it. stageproof PROVEN exit 0 compare ./webapp-1.0.0 -> ./webapp-1.1.0 k8s 1.33 · checked: files, live cluster ✓ PASS helm template rendered 1 Kubernetes object cleanly ✓ PASS values.yaml AST no custom -f overlay passed (default chart values verified) ✓ PASS image tags no new or changed image ✓ PASS impact Compared rendered objects. The API server did not run, so a default the server adds is not in this comparison. ✓ PASS k8s 1.33 compatibility 0 removed APIs or selector breaks on K8s 1.33 ✓ PASS kind cluster boot isolated cluster `sp-docs-smoke-ok` ready on Kubernetes v1.33.12 ✓ PASS baseline install baseline revision 1 healthy in 6.2s ✓ PASS in-place helm upgrade empty cluster upgraded in 500ms, 0 restarts. No existing data was in this cluster. ✓ PASS smoke: deploy passed ✓ PASS rollback rehearsal reverted to revision 1 cleanly in 200ms verdict PROVEN (exit 0) · 37232ms · 0 AI calls
The smoke line is before the rollback. The command saw the upgraded release.
In this run, chart 1.6.0 starts the container with a command that exits with an error. This sample is a v0.6.1 run. That binary used Kubernetes 1.33 because the command does not name a version. On main, pass --current-k8s or the check exits 2 before a cluster starts.
stageproof check --current-chart ./webapp-1.4.0 --new-chart ./webapp-1.6.0 -f values-prod.yaml --live
stageproof BLOCKED exit 1
compare ./webapp-1.4.0 -> ./webapp-1.6.0
values values-prod.yaml
k8s 1.33 · checked: files, live cluster
✓ PASS helm template rendered 1 Kubernetes object cleanly
✓ PASS values.yaml AST 2 keys: 0 proven by rendering, 2 read in templates
✓ PASS k8s 1.33 compatibility 0 removed APIs or selector breaks on K8s 1.33
✓ PASS kind cluster boot isolated cluster `stageproof-ephemeral` ready on Kubernetes v1.33.12
✓ PASS baseline install baseline revision 1 healthy in 1.8s
✕ FAIL in-place helm upgrade pod `sp-rel-webapp-755977846f-4r2gf` CrashLoopBackOff (restarts=1)
✓ PASS rollback rehearsal reverted cleanly to revision 1 in 400ms after failed upgrade
ERROR helm.runtime.upgrade_failed
sp-trial-886740/sp-rel
In-place `helm upgrade` failed against healthy baseline: pod `sp-rel-webapp-755977846f-4r2gf` CrashLoopBackOff (restarts=1)
aborted wait early on terminal pod state: sp-rel-webapp-755977846f-4r2gf: exited 1 (restarts=1)
verdict BLOCKED (exit 1) · 7180ms · 0 AI calls
The file checks passed, so only the rehearsal could find this. The current chart was healthy, the new chart was not, and that makes the upgrade the cause. Stageproof still rehearses the rollback after a failed upgrade. Here it passed, so a rollback would have recovered the release.
The kind cluster signs a kubelet certificate that includes the node IP. kind's own certificate names the node and not that IP, so a chart that scrapes the node never becomes ready. v0.7.0 used kind's certificate.
Stageproof does not wait for the full timeout when a pod has clearly failed. It stops waiting as soon as a pod crashes or cannot pull its image.
The temporary cluster is empty. It has no access to your private registry, your Secrets, or your databases. When the rehearsal stops for one of those reasons, Stageproof does not blame the upgrade.
| What stopped the rehearsal | Result | Reason shown |
|---|---|---|
| The chart needs a CRD that is not in the chart and not in the built-in list. | PASSED | missing_external_crds. Pass the CRD with --crd-file. With --require-rehearsal the result is NOT CHECKED. |
| The current chart cannot start in an empty cluster: an image in a private registry, a missing Secret or ConfigMap, a database that cannot be reached, or a storage class that does not exist. | PASSED | baseline_requires_external_dependency. With --require-rehearsal the result is NOT CHECKED. |
| The current chart fails to start for any other reason. | NOT CHECKED | The failure, on the baseline install line. |
The current release does not become ready before --timeout, the release still exists, and the upgrade of that release becomes ready. Rolling back hits the same deadline. | NOT CHECKED | baseline install says baseline slow. in-place helm upgrade says the release that had not become ready was upgraded. rollback rehearsal says the current release still did not become ready. The result is not PROVEN and not BLOCKED. |
| The cluster could not be created. | NOT CHECKED | The error from kind. |
The temporary cluster runs the same Kubernetes version as the file checks: the one you gave with --current-k8s, with --cluster-facts, or in the configuration file. With none of those, the check exits 2 and no cluster starts. The kind cluster boot line states the exact version, v1.33.12 in the runs above.
kind publishes its cluster images for specific patch releases. Stageproof looks up the newest one for your version on Docker Hub and creates the cluster from it.
| Situation | What happens |
|---|---|
| An image exists for your version. | The cluster runs your version. |
| No image exists for your version, or Docker Hub cannot be reached. | The cluster runs the default version of your kind release. The report adds a WARN line named rehearsal version that states both versions. |
A cluster with that name already exists, for example from --keep-cluster. | It is reused as it is. If its version differs, the report adds the same WARN line. |
| Your kind release cannot start the image for your version. | The result is NOT CHECKED. The message names the image. A newer kind release is usually the fix. |
The warning does not change the result. A rehearsal on another version still shows that the upgrade and the rollback work, and the report says which version that was.
| Resources in your chart | CRDs installed from |
|---|---|
ServiceMonitor, PodMonitor, PrometheusRule | Prometheus Operator v0.78.1 |
HTTPRoute, Gateway | Gateway API v1.2.0 |
Certificate, Issuer, ClusterIssuer | cert-manager v1.16.2 |
Cluster (postgresql.cnpg.io) | CloudNativePG v1.24.1 |
Only the CRDs are installed. The controllers behind them are not.
| Flag | Effect |
|---|---|
--crd-file | A CRD file or URL to install before the rehearsal. Repeat it for several. |
--timeout | How long to wait for pods at each step. The default is 10m. |
--helm-test | Also run the chart's helm test hooks after the upgrade. |
--require-rehearsal | If the rehearsal does not run and pass, the result is NOT CHECKED (exit 2) instead of PASSED (exit 0). |
--keep-cluster | Do not delete the cluster at the end. The next run reuses it and starts faster. |
--cluster-name | Use another name for the cluster. The default is stageproof- plus the process id, so two rehearsals can run at once. The name is the first line of the verdict. |
If you give only --new-chart, there is nothing to upgrade from. The rehearsal installs the new chart once and skips the rollback.
Some charts ship CRDs that are too large to apply the default way. Stageproof warns you before the deployment fails. Read this page when a report contains k8s.crd.oversized_annotation_limit.
The default way to apply a resource is client-side apply. It stores a full copy of the resource in an annotation on that resource. Kubernetes limits annotations to 256 KiB. A CRD larger than that cannot be applied this way, and the deployment fails with an error about annotations being too long.
Server-side apply does not use that annotation, so it has no such limit.
This sample is a v0.6.1 run. That binary used Kubernetes 1.33 because the command does not name a version. On main, pass --current-k8s or the check exits 2.
stageproof check --new-chart ./argo-cd
stageproof PASSED exit 0
compare (single-chart check) -> ./argo-cd
k8s 1.33 · checked: files
✓ PASS helm template rendered 60 Kubernetes objects cleanly
✓ PASS values.yaml AST no custom -f overlay passed (default chart values verified)
✓ PASS k8s 1.33 compatibility 0 blockers (2 deprecation, EOL, or CRD warnings)
WARN k8s.crd.oversized_annotation_limit
resource: CustomResourceDefinition/default/applications.argoproj.io
CRD size is 550 KiB (>256 KiB client-side `last-applied-configuration` limit).
1-line fixes -> Argo CD: `syncOptions: [ServerSideApply=true]` | Flux: `install/upgrade.crds: CreateReplace` | Helm v4: `helm upgrade --server-side` | kubectl: `kubectl apply --server-side -f crds/` (pass `--server-side-apply` if already enabled).
WARN k8s.crd.oversized_annotation_limit
resource: CustomResourceDefinition/default/applicationsets.argoproj.io
CRD size is 2778 KiB (>256 KiB client-side `last-applied-configuration` limit).
1-line fixes -> Argo CD: `syncOptions: [ServerSideApply=true]` | Flux: `install/upgrade.crds: CreateReplace` | Helm v4: `helm upgrade --server-side` | kubectl: `kubectl apply --server-side -f crds/` (pass `--server-side-apply` if already enabled).
verdict PASSED (exit 0) · 404ms · 0 AI calls
This is a warning, so the result is not blocked. Whether the deployment fails depends on how you deploy, which Stageproof cannot see from a chart directory.
First, change how the tool that deploys the chart applies CRDs.
| You deploy with | Setting |
|---|---|
| Argo CD | Add ServerSideApply=true to spec.syncPolicy.syncOptions in the Application. |
| Flux | Set install.crds and upgrade.crds to CreateReplace. |
| Helm 4 | A new install already uses server-side apply. An upgrade of a release Helm 3 created stays client-side unless you pass --server-side. |
| kubectl | Run kubectl apply --server-side -f crds/. |
Then tell Stageproof, so that it stops warning:
--server-side-apply to the command, or set serverSideApply: true in the configuration file.ServerSideApply=true from the file.spec.upgrade.crds is read for the CRD schema rule. It does not turn off this size warning. Pass --server-side-apply when you apply with server-side apply.What changes when the helm binary is Helm 4, and what Stageproof can already see. The notes below follow Helm 4 Overview. The released binary is v0.9.0.
Chart.yaml apiVersion: v3 is helm4.chart_v3, a warning. Charts v3 are experimental. v2 charts work on Helm 3 and Helm 4. Charts v3.
--helm-compare renders the chart with the helm on PATH and with the binary you name. Objects are parsed and compared. A field that changes between two renders of the same binary is ignored. A remaining difference is helm4.render_differs, a warning. If one binary cannot render the chart, that is helm4.render_failed and the result is BLOCKED. Upgrading to Helm 4 asks you to test existing charts. This is that test for the render.
This run used Helm 3.22.1 on PATH and Helm 4.3.2 as --helm-compare. The chart prints .Capabilities.HelmVersion.Version, so the objects differ:
stageproof check --api-server off --new-chart testdata/helm4/version --current-k8s 1.35 --helm-compare /tmp/helm-bins/helm4
! NOT TESTED LIVE. This job did not rehearse the upgrade. The files were checked. The upgrade itself was not.
stageproof PASSED exit 0
compare (single-chart check) -> testdata/helm4/version
k8s 1.35 · checked: files
✓ PASS helm template rendered 1 Kubernetes object cleanly
✓ PASS values.yaml AST no custom -f overlay passed (default chart values verified)
✓ PASS image tags no new or changed image
! WARN Helm 4 the rendered objects differ
✓ PASS k8s 1.35 compatibility 0 removed APIs or selector breaks on K8s 1.35
WARN helm4.render_differs
ConfigMap/default/c
helm (v3.22.1) and /tmp/helm-bins/helm4 (v4.3.2) rendered different objects for the new chart. ConfigMap/default/c at data.helm.
Fields that change between two renders of the same binary are ignored. The report names paths and does not print values. https://helm.sh/docs/overview/#upgrading-to-helm-4
verdict PASSED (exit 0) · 406ms · 0 AI calls
A chart both binaries render the same way stays PASSED, and the Helm 4 line says the two binaries rendered the same objects. The commands Stageproof runs (template, pull, install, upgrade, rollback, uninstall, test, status, and version --template) were checked on Helm 3.22.1 and Helm 4.3.2. Helm 4.3.2 still has template. It does not have a render command.
These are real Helm 4 changes. A chart file does not show them, and rendering with both binaries does not show them either.
| Change | Where Helm wrote it | What to do |
|---|---|---|
| A post-renderer is a plugin name, not an executable path. | Post-renderers | Stageproof does not pass --post-renderer. Update a workflow that points that flag at a program. |
helm registry login takes a registry host, not a full URL. | Registry login | Stageproof pulls charts with helm pull. It does not call registry login. |
| A new install uses server-side apply. An upgrade follows the previous apply method. A release Helm 3 created stays client-side. | Server-side apply | Pass --server-side-apply when the release is applied that way. A check with no current chart treats a Helm 4 binary as a new install. |
--atomic is --rollback-on-failure. --force is --force-replace. The old flags still run and warn. | Renamed flags | Stageproof does not pass either flag. On Helm 4.3.2 both old flags still print a deprecation warning. |
helm template --hide-notes and --render-subchart-notes do nothing and will go away in Helm 5. | Deprecated flags | Stageproof does not pass them. Helm 4.3.2 still accepts --hide-notes and warns. |
helm install --create-pods and helm repo add --no-update are gone. | Changelog | Helm 4.3.2 rejects both flags. Stageproof does not pass them. |
| Plugin, SDK, and package paths moved. The cache can be content-addressed. | Plugins and the SDK | Stageproof shells out to the helm binary. It does not import the Helm SDK. |
Run Stageproof on every merge request that changes a chart. The pipeline fails when the upgrade is blocked, and the report is posted as a comment on the merge request.
stageproof check-pr against the target branch of the merge request.zarovvvv/stageproof checks out the merge request and runs the Stageproof image. The default image is the v0.9.0-live digest sha256:f2f4be58574afca1c93edf60a0186d1a561dbd0efdc6de30986bbd15e723f376. It contains kind, kubectl, and Helm. 1 is the major version in the CI/CD catalog. It runs the same check as stageproof check-pr.
include:
- component: gitlab.com/zarovvvv/stageproof/stageproof@1
inputs:
current_k8s: "1.35"
Set current_k8s to the Kubernetes version of the cluster you deploy to. The component does not take a values file. A chart in the repository is rendered with its own values.yaml unless .stageproof.yaml lists the files you deploy. An Argo CD Application or a Flux HelmRelease uses the values those files name. Set STAGEPROOF_GITLAB_TOKEN to a token that can write merge request notes. CI_JOB_TOKEN cannot write notes. Without that token the job still checks the merge request, and the report is a job artifact. A later run updates the note that contains <!-- stageproof-comment -->. live: true rehearses the upgrade on a runner that can start containers.
The job below does the same check without the component. Change the paths under changes to where your charts and Application files are. The image tag is a released version.
stageproof:
stage: test
image:
name: ghcr.io/stageproof/stageproof:v0.9.0
entrypoint: [""]
variables:
GIT_DEPTH: "50"
GIT_FETCH_EXTRA_FLAGS: "--prune --quiet"
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
changes:
- charts/**/*
- apps/**/*
script:
- |
set -euo pipefail
git fetch origin "$CI_MERGE_REQUEST_TARGET_BRANCH_NAME" --depth=50
BASE="${CI_MERGE_REQUEST_DIFF_BASE_SHA:-origin/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME}"
set +e
STAGEPROOF_COLOR=always stageproof check-pr \
--current-git "$BASE" \
--current-k8s 1.35 \
--comment-file stageproof-comment.md \
--out stageproof-report.json
RESULT=$?
set -e
# Post or update one comment. A comment failure must not hide the check result.
POST=0
if [ -f stageproof-comment.md ] && [ -n "${STAGEPROOF_GITLAB_TOKEN:-}" ]; then
stageproof comment --file stageproof-comment.md || POST=$?
fi
# 0 is PASSED or PROVEN. 1 is BLOCKED. 2 is NOT CHECKED.
if [ "$RESULT" -ne 0 ]; then
exit "$RESULT"
fi
exit "$POST"
artifacts:
when: always
paths:
- stageproof-report.json
- stageproof-comment.md
The job log contains the same report you get on your own machine, in color. In CI the current version is labelled with the commit hash of the target branch. Set --current-k8s to the Kubernetes version of the cluster you deploy to.
stageproof PASSED exit 0 compare argo-cd@10.9.6 (483f04ab675afc42575124fe013935041e5028c8) -> argo-cd@10.18.0 (apps/argo-cd.yaml) values helm.values in apps/argo-cd.yaml k8s 1.35 · checked: files ✓ PASS helm template rendered 60 Kubernetes objects cleanly ✓ PASS values.yaml AST 2 keys: 0 proven by rendering, 2 read in templates ✓ PASS k8s 1.35 compatibility 0 removed APIs or selector breaks on K8s 1.35 (SSA mode) verdict PASSED (exit 0) · 4098ms · 0 AI calls
| Part | Why it is there |
|---|---|
rules | The job runs only in merge request pipelines, and only when a chart or Application file changed. |
GIT_DEPTH and git fetch | Stageproof reads the chart from the target branch, so that commit must be in the clone. A clone with depth 1 does not contain it. |
set +e around the command | The job must keep running after a non-zero exit code, so that it can post the comment before it fails. |
stageproof comment | Posts the Markdown file, or updates the note that already contains <!-- stageproof-comment -->. |
The last if | Exit code 0 is PASSED or PROVEN and the job stays green. Exit code 1 (BLOCKED) and 2 (NOT CHECKED) fail the job. That exit is kept even when the comment command fails. If the check passed and the comment did not, the job fails with the comment command's exit code. |
fail_on | Component input. all is the default and matches the row above. blocked fails the job only on exit 1. never posts the note and leaves the job green. The check's own exit code does not change. |
stageproof comment posts the Markdown report, or updates the existing note that contains <!-- stageproof-comment -->. A later run does not add a second note. A merge request that changes several charts gets one comment that covers all of them.
It reads CI_API_V4_URL, CI_PROJECT_ID, and CI_MERGE_REQUEST_IID. The token is STAGEPROOF_GITLAB_TOKEN, GITLAB_TOKEN, or CI_JOB_TOKEN, in that order. A personal or project token uses the PRIVATE-TOKEN header and needs the api scope. A job token uses the JOB-TOKEN header. Mark the variable as masked. Without a token, the job still checks the merge request and skips the comment. The request goes to the host in CI_API_V4_URL, or to https://gitlab.com/api/v4 when that variable is empty.
A failed job does not stop a merge by default. In the project, open Settings, then Merge requests, and turn on Pipelines must succeed.
GitLab applies that setting to every merge request in the project. It cannot be limited to some branches. Make sure every merge request gets a pipeline, including the ones that change no chart, or those can no longer be merged.
The job above does not use --live. --live starts a real Kubernetes node, and that node is a container that has to set up its own networking and start more containers. An unprivileged CI job is blocked from doing that, so the report says NOT TESTED LIVE. See Rehearse the upgrade in a temporary cluster.
Run Stageproof on every pull request that changes a chart. The workflow fails when the upgrade is blocked, and the report appears in the workflow summary.
stageproof check-pr against the base branch of the pull request.stageproof/action checks out the pull request, downloads the released binary, checks checksums.txt, writes the report to the job summary, and posts one comment. v1 is the major tag. It runs the same check as stageproof check-pr.
name: stageproof
on:
pull_request:
permissions:
contents: read
pull-requests: write
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: stageproof/action@v1
with:
current-k8s: "1.35"
api-server: auto
comment: "true"
live: "false"
Set current-k8s to the Kubernetes version of the cluster you deploy to. The action does not take a values file. A chart in the repository is rendered with its own values.yaml unless .stageproof.yaml lists the files you deploy. An Argo CD Application or a Flux HelmRelease uses the values those files name. live: "true" rehearses the upgrade on a runner that can start containers. Do not run this action from pull_request_target.
The workflow below downloads Helm and the released binary without the action. Change paths to where your charts and Application files are. The version in the download URL is a released tag.
name: stageproof
on:
pull_request:
paths:
- "charts/**"
- "apps/**"
permissions:
contents: read
pull-requests: write
jobs:
check:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Helm 3.22.1
run: |
set -euo pipefail
curl -fsSL -o /tmp/helm.tgz https://get.helm.sh/helm-v3.22.1-linux-amd64.tar.gz
echo "896cf63684a42a723d61c980369d6e588330927deb13676ca0d85006dd6da0ea /tmp/helm.tgz" | sha256sum -c -
tar -xzf /tmp/helm.tgz -C /tmp
sudo mv /tmp/linux-amd64/helm /usr/local/bin/helm
- name: Install Stageproof v0.9.0
run: |
set -euo pipefail
curl -fsSL -o checksums.txt https://github.com/stageproof/stageproof/releases/download/v0.9.0/checksums.txt
curl -fsSL -o stageproof_0.9.0_linux_amd64.tar.gz https://github.com/stageproof/stageproof/releases/download/v0.9.0/stageproof_0.9.0_linux_amd64.tar.gz
sha256sum -c checksums.txt --ignore-missing
tar -xzf stageproof_0.9.0_linux_amd64.tar.gz
sudo mv stageproof /usr/local/bin/stageproof
- name: Check the pull request
run: |
set +e
stageproof check-pr \
--current-git "origin/${{ github.base_ref }}" \
--current-k8s 1.35 \
--comment-file stageproof-comment.md \
--out stageproof-report.json
result=$?
set -e
if [ -f stageproof-comment.md ]; then
cat stageproof-comment.md >> "$GITHUB_STEP_SUMMARY"
fi
# Post or update one pull request comment. A fork token is often read-only.
post=0
if [ -f stageproof-comment.md ]; then
stageproof comment --file stageproof-comment.md --best-effort || post=$?
fi
# 0 is PASSED or PROVEN. 1 is BLOCKED. 2 is NOT CHECKED.
if [ "$result" -ne 0 ]; then
exit "$result"
fi
exit "$post"
| Part | Why it is there |
|---|---|
paths | The workflow runs only when a chart or Application file changed. |
fetch-depth: 0 | Stageproof reads the chart from the base branch, so that branch must be in the clone. The default checkout does not contain it. |
origin/${{ github.base_ref }} | The branch the pull request will merge into. |
GITHUB_STEP_SUMMARY | The Markdown report is added to the summary page of the workflow run. |
pull-requests: write | stageproof comment uses GITHUB_TOKEN to post or update one comment on api.github.com. A fork pull request often has a read-only token. --best-effort leaves the job green in that case. |
The last if | Exit code 0 is PASSED or PROVEN. Exit code 1 and 2 fail the workflow. The summary is written first. The check exit code is kept when the comment command also fails. |
fail-on | Action input. all is the default and matches the row above. blocked fails the job only on exit 1. never posts the comment and leaves the job green. The result output is still 0, 1, or 2 from stageproof check-pr. |
Set --current-k8s to the Kubernetes version of the cluster you deploy to.
Add a branch protection rule, or a ruleset, for your default branch. Require status checks to pass, and select the check job of this workflow.
Renovate opens pull requests that bump chart versions. Stageproof checks each of those pull requests. The two tools do not talk to each other, and neither needs to know about the other.
Renovate updates a version only when it knows where the version is written. For Argo CD Application files, turn on the argocd manager and tell it which files to read.
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:recommended"],
"enabledManagers": ["argocd"],
"argocd": {
"managerFilePatterns": ["/^apps/.+\\.yaml$/"]
},
"automerge": false
}
With this file, Renovate opens a pull request when a chart has a newer version. The pull request changes targetRevision in the Application file. Stageproof then compares the two versions, as shown in Check an Argo CD Application.
Keep automerge off, or protect your default branch so that a pull request cannot merge while the Stageproof job is failing. The CI pages show the setting for each platform.
stageproof/renovate-presets adds one image to a Helm pull request. The image is the chart-defaults report from the index. It is not a check of your cluster. The pipeline check above is that check.
{
"extends": ["github>stageproof/renovate-presets"]
}
The text is no blocking finding (defaults), not checked, not indexed, pair not indexed, or the blocking finding. not indexed means the chart is not in the catalog. pair not indexed means the chart is listed and that exact upgrade is not stored.
A second preset asks GitHub to auto-merge a patch after the required checks pass. Minor updates, major updates, and OCI charts stay open.
{
"extends": [
"github>stageproof/renovate-presets",
"github>stageproof/renovate-presets:automerge-patch"
]
}
Require the Stageproof job in branch protection. A branch with no required checks can merge a patch as soon as GitHub's own rules pass.
Renovate pushes a branch and then opens a merge request. GitLab can start one pipeline for the push and another for the merge request. Only the merge request pipeline runs Stageproof. This rule in the root .gitlab-ci.yml skips the other one.
workflow:
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH =~ /^renovate\//
when: never
- if: $CI_COMMIT_BRANCH
- if: $CI_COMMIT_TAG
Renovate also bumps container image tags in values.yaml. For such a pull request, Stageproof renders the chart with the new tag and asks the registry whether that tag exists. It does not download the image layers, so it cannot tell whether the new image starts.
A tag the registry says is missing is BLOCKED. A tag the registry has is PASSED, with the image warning that names the change. To have the new image started in a cluster, use the live rehearsal.