gate

command
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command gate runs a Chainsaw test bundle in a polling loop against the cluster reachable from the current KUBECONFIG / in-cluster service account. It exits 0 once every component has passed continuously for the stability window, exits 1 if the max-wait ceiling is hit before that, and exits 2 on configuration errors.

The bundle is loaded from a local directory (typically a ConfigMap mounted into the pod, but any directory of *.yaml chainsaw tests works). Each file becomes a component named after the filename (sans .yaml suffix).

Assertions are evaluated in-process by pkg/chainsaw (assert / error only, enforced by that package's read-only allowlist) against the cluster reachable from the pod's ServiceAccount or the local KUBECONFIG. The gate used to shell out to a `chainsaw` binary baked into the image; #2038 removed it — it was the image's only source of HIGH CVEs, unfixable upstream.

AICR runs this CLI from a readiness-gate Job emitted by the bundler; the Job mounts the chainsaw Test as a ConfigMap and passes the polling parameters as flags. No CRD or controller is involved.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL