Skip to content

lookout audit upgrades

Upgrade and patch readiness, read from the cloud provider: how far the control plane and its node pools are behind what the provider publishes, and whether anything is set up to close that gap on its own — release channel, node auto-upgrade and auto-repair, a maintenance window, active maintenance exclusions, node images on the removed Docker runtime, and upgrade notifications. Reads the provider’s cluster record, not Kubernetes objects, so it takes no —namespace/-A/—workload; scanned counts the cluster plus its node pools. Without a provider capability it reports an explicit unavailable rather than silence.

MCP tool: k8s_audit_upgrades (MCP profile: audit)

Terminal window
lookout audit upgrades [flags]
FlagTypeDefaultMeaning
--namespacestring—limit the scan to one namespace
-Abool—scan all namespaces
--workloadstring—target one workload as <Kind>/<namespace>/<name>, e.g. Deployment/prod/api
--sinceduration—how far back to look (0 = command default)
--formatstringlogfmtoutput format: logfmt|json (one record per line either way)
--timeoutduration10sabort the invocation after this long (exit 1)
--kubeconfigstring—path to a kubeconfig file, instead of $KUBECONFIG / ~/.kube/config
--contextstring—kubeconfig context to read, instead of its current-context. Selects a cluster for THIS invocation only — nothing is written back — so concurrent invocations can target different clusters. Reported as context=<name> in the summary line
--exemptionsstring—path to a git-reviewed exemption file (YAML); covered findings are ANNOTATED with their reason and expiry and counted as exempt=<n> in the summary, never dropped

Every kind= this command can emit, and the severities it carries them at. Nothing else appears in its output; a kind absent from a run means the check looked and found nothing. See the finding-kind glossary for the whole vocabulary.

KindSeverityClaim
audit.version_behindwarning, infothe control plane or a node pool is behind what the provider publishes, or a node pool has skewed from the control plane; info while the gap is still within the supported skew
audit.upgrade_unmanagedwarningnothing will close that gap on its own: no release channel, or node auto-upgrade/auto-repair off
audit.upgrade_blockedwarning, infoan active maintenance exclusion, or a node image on the removed Docker runtime, will stop the upgrade when it comes
audit.upgrade_unattendedinfoupgrades will happen with nobody watching: no maintenance window, or no upgrade notifications
cloud.unavailableinfothe cloud capability this check needs is unavailable, so nothing was examined — an explicit degradation record, never silence

Beyond the shared envelope fields (kind, severity, namespace, kind_of_object, name, reason, message, fingerprint, exempt_reason, exempt_expires):

FieldMeaning
clusteron a node-pool finding: the cluster the pool belongs to, so the record stands alone
versionthe current version of the finding’s subject — the control plane’s, or the node pool’s
target_versionthe version the provider would move this cluster to: its channel’s upgrade target where one is published, otherwise the channel’s default
control_plane_versionon a node-pool skew finding: the control-plane version the pool is measured against
minor_versions_behindhow many minor releases separate the two versions
channelthe release channel the cluster is subscribed to, and the one whose published versions the comparison used; none when it is subscribed to no channel
image_typethe provider’s name for the node image the pool runs
exclusionthe operator’s name for the maintenance exclusion currently in force
scopehow much of the upgrade stream that exclusion holds back: all-upgrades, minor-upgrades or minor-and-node-upgrades
endswhen the exclusion lifts, or end-of-support for one that runs until the cluster’s version leaves support
days_remaininghow much longer the exclusion has left to run
node_poolssummary note: node pools examined — the cluster itself is the other unit scanned counts
capabilitycloud.unavailable: the provider capability this command needed (cluster-config)
providercloud.unavailable: the provider that was asked
unavailablesummary-line note: why the cloud read could not be served

Output: one finding per line (logfmt; —format=json for one JSON object per line), keys in fixed order; healthy resources emit nothing. The final line is always the summary: scanned= findings= elapsed= — findings=0 with a summary present means “scanned and healthy”; a stream without a summary line is void. Exit 0 data, 1 runtime error (diagnostics on stderr only), 2 usage.

Terminal window
lookout audit upgrades
lookout audit upgrades --format=json
lookout audit upgrades --exemptions=exemptions.yaml