Skip to content

fix(ci): validate product k8s renders with kubeconform - #7647

Merged
dan-petty merged 2 commits into
mainfrom
fix/5084-kubeconform-k8s-ci-gate
Nov 28, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/5084-kubeconform-k8s-ci-gate

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Validate the rendered product Kubernetes manifests (k8s/devops/) against OpenAPI and CRD schemas in Static Analysis (#5084):

  • Add schema_locations: Sequence[str] = () to KubeconformScanner.build_command and run_kubeconform_validation (src/devops_cli/security/kubeconform.py).
  • Add tests/gate/k8s_checks/kubeconform.py to the k8s gate row: validates the kubectl kustomize k8s/devops render (never kustomization.yaml) in strict mode with -schema-location default and commit-pinned datreeio/CRDs-catalog (b50f3fbc45169a14b6d2d3f767b32fd96ef4a3fa), fails when kubeconform is missing on PATH, and skips missing CRD schemas only when k8s/kubeconform-skip.yaml names the kind and non-empty reason.
  • Copy kubeconform in .github/workflows/ci.yml (devtools-commands), skip kubeconform in Security Scan, and move kubeconform to RUNNER_TOOLS (gate:static).

Closes #5084

Change: openspec/changes/archive/2026-11-28-5084-kubeconform-k8s-ci-gate/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/ci GitHub Actions workflows, pre-commit hooks, CI gates, and runners labels Nov 28, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 28, 2026 22:46
@dan-petty
dan-petty merged commit 05f827d into main Nov 28, 2026
39 checks passed
@dan-petty
dan-petty deleted the fix/5084-kubeconform-k8s-ci-gate branch November 28, 2026 23:22
dan-petty-release Bot added a commit that referenced this pull request Nov 28, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.241.0](v0.240.1...v0.241.0)
(2026-11-28)


### Features

* **docs:** check Markdown links and anchors with rumdl
([#7634](#7634))
([a8dab0f](a8dab0f)),
closes [#4899](#4899)
* **docs:** generated pages name their source and stay complete
([#7639](#7639))
([05b09f4](05b09f4))


### Bug Fixes

* **ai:** RAG chunks cover module code and use a token size
([#7642](#7642))
([3a13aba](3a13aba))
* **ci:** use fixed host probe and fail on timeout in bwrap row
([#7650](#7650))
([916c3e0](916c3e0))
* **ci:** validate product k8s renders with kubeconform
([#7647](#7647))
([05f827d](05f827d))
* **infra:** ignore Longhorn instance-manager PDB blocks in drain check
([#7648](#7648))
([9cdeeb6](9cdeeb6))
* **infra:** order disruptive hosts by play order
([#7657](#7657))
([d1b75ca](d1b75ca))
* **k8s:** name --from-file in multi-line push hints
([#7637](#7637))
([ac674ac](ac674ac))
* **k8s:** print planned fetches in image-pins dry run
([#7649](#7649))
([642eb8f](642eb8f))
* **k8s:** restart readers on the first push of a Secret
([#7641](#7641))
([dabe20e](dabe20e))
* **k8s:** select a Running pod instead of first pod
([#7646](#7646))
([665344d](665344d)),
closes [#7377](#7377)
* **k8s:** share render command builder with catalog dry run
([#7651](#7651))
([14caa79](14caa79))
* **repos:** derive template answers of existing repo
([#7638](#7638))
([0b8cf5f](0b8cf5f))
* **repos:** name differing ruleset keys in onboard row 10
([#7636](#7636))
([3d1dd3f](3d1dd3f))
* **roadmap:** accept a shell command as a scenario proof
([#7643](#7643))
([a3d2638](a3d2638)),
closes [#7401](#7401)
* **roadmap:** ignore cross-repo PR links in wait refs
([#7645](#7645))
([71a9687](71a9687))


### Code Refactoring

* delete dead code kept by
[#1910](#1910)
([#7653](#7653))
([3233959](3233959))

---
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/ci GitHub Actions workflows, pre-commit hooks, CI gates, and runners 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.

fix(ci): validate the k8s manifests against a schema in CI

1 participant