Skip to content

fix(k8s): Run kube-linter on the Argo CD builds in CI - #6112

Merged
dan-petty merged 4 commits into
mainfrom
fix/6068-kube-linter-in-ci
Nov 17, 2026
Merged

dan-petty merged 4 commits into
mainfrom
fix/6068-kube-linter-in-ci

Conversation

@dan-petty

@dan-petty dan-petty commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

No CI job ran kube-linter, and #6075 deleted the tests of the security controls of the manifests. devops k8s lint with no target now builds each path source of the Argo CD Applications with Kustomize and lints the builds with .kube-linter.yaml. A new kube-linter row of devops ci runs it in Static Analysis, which installs the pinned kube-linter.

The 56 findings are fixed (explicit RollingUpdate on 7 workloads) or annotated with ignore-check.kube-linter.io/<check>, a reason and an issue; the tier render keeps such an annotation. Checked now: pod isolation, no token on the default ServiceAccount, non-root, read-only root, privilege escalation, no latest tag, requests, limits, probes, rollout, PVC prune protection. Not yet: rule ports and peers (#4407), digests (#6067), drop ALL and seccomp (trivy config), Namespace prune (kept tests), charts (#6106). design.md maps each control.

Closes #6068

Change: openspec/changes/archive/2026-11-17-6068-kube-linter-in-ci/

@dan-petty

dan-petty commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner Author

The findings of kube-linter on the manifests, and what this pull request does with each

uv run devops k8s lint on main of 2026-11-17, with .kube-linter.yaml: 56 findings on the builds of the 15 path sources. After this pull request: 0. The Static Analysis log shows ✓ pass kube-linter (...) (17s), and the Security Scan step no longer prints "Scanner 'kubelinter' was not run".

Object Check What this pull request does
Deployments cloudflared, searxng, llm-gateway, portkey, valkey, valkey-devops; DaemonSet gpu-feature-discovery no-rolling-update-strategy Fixed: explicit RollingUpdate (maxUnavailable: 0, maxSurge: 1 for the Deployments). For 3 replicas or fewer these are the values that Kubernetes already used.
CronJobs devops-cli, devops-cli-runner, devops-cli-planner-run, roadmap-stage (suspended templates), renovate job-ttl-seconds-after-finished, no-liveness-probe, no-readiness-probe, latest-tag Annotated: the Job made from the template keeps the TTL that docs/guidelines/kubernetes.md asks for; a Job serves no traffic and activeDeadlineSeconds stops it; Image Updater sets the digest.
Deployment mcp-server latest-tag Annotated: Image Updater sets the digest.
Deployment roadmap-service latest-tag, no-rolling-update-strategy Annotated: Image Updater; Recreate until #6107.
Deployment crawl4ai no-rolling-update-strategy, no-liveness-probe Annotated: Recreate for the memory of Chromium; liveness probe in #6108.
Deployment valkey-runs no-rolling-update-strategy Annotated: the volume is ReadWriteOnce.
DaemonSet gpu-feature-discovery privileged-container, privilege-escalation-container, run-as-non-root, sensitive-host-mounts, non-isolated-pod, no-liveness-probe, no-readiness-probe Annotated: privileged mode until #5646; NetworkPolicy in #6109; the pod serves no endpoint.
The 10 Ollama tiers run-as-non-root (initContainer own-model-directory) Annotated on each tier and on the tier template (#1060, #5012). devops ai gateway render now keeps that annotation on the two tiers it writes.
Ollama tiers 24gib, 32gib, 48gib, 72gib, 96gib, 128gib unset-memory-requirements Annotated: no memory limit until a measured peak sizes it (#4992).

The coverage of the controls that #6075 deleted is the last section of openspec/changes/archive/2026-11-17-6068-kube-linter-in-ci/design.md.

@dan-petty
dan-petty marked this pull request as ready for review November 17, 2026 03:38
devops k8s lint with no target builds each path source of the Argo CD
Applications and lints the builds with .kube-linter.yaml. A new
kube-linter row of devops ci runs it, and Static Analysis installs the
pinned kube-linter. Each finding is fixed or annotated with its reason.

Closes #6068
The token review gate refuses a patch of a DaemonSet, so each Ollama tier holds its run-as-non-root exception, and the tier render keeps the annotations of a template that control no render. The CI workflow tests and the MCP path confinement know the new step, the scan skip and the k8s_dir parameter.

Refs #6068
@dan-petty
dan-petty force-pushed the fix/6068-kube-linter-in-ci branch from cc4554b to 9a0491a Compare November 17, 2026 07:43
@dan-petty
dan-petty merged commit dba90f1 into main Nov 17, 2026
26 checks passed
@dan-petty
dan-petty deleted the fix/6068-kube-linter-in-ci branch November 17, 2026 07:56
dan-petty pushed a commit that referenced this pull request Nov 17, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.171.0](v0.170.0...v0.171.0)
(2026-11-17)


### Features

* **roadmap:** Run review scanners in the runner pod
([#6114](#6114))
([ddde85a](ddde85a))
* **service:** Roll the Service with a surge release
([#6146](#6146))
([a459b65](a459b65))


### Bug Fixes

* **k8s:** Run kube-linter on the Argo CD builds in CI
([#6112](#6112))
([dba90f1](dba90f1)),
closes [#6068](#6068)
* **k8s:** Take the k8s area of the config-read list to zero
([#6124](#6124))
([0857ee5](0857ee5)),
closes [#6119](#6119)
* **roadmap:** judge a pyproject tool setting by its diff
([#6089](#6089))
([0a787eb](0a787eb)),
closes [#3491](#3491)
* **roadmap:** Name both command registration forms
([#6148](#6148))
([0d3b1e1](0d3b1e1))
* **roadmap:** Read the files of a named pull request
([#6144](#6144))
([5a29fed](5a29fed))
* **roadmap:** refuse a placeholder group title in a plan
([#6092](#6092))
([cfd820b](cfd820b))
* **service:** the metrics row sends too many counted requests
([#6095](#6095))
([b3fc5dc](b3fc5dc))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/k8s Kubernetes commands, Helm charts, pods, services, and policies type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci(k8s): Run kube-linter on the rendered manifests in CI

1 participant