Skip to content

feat(k8s): preview requests in dry run for manifest commands - #2851

Merged
dan-petty merged 1 commit into
mainfrom
feat/2239-k8s-manifest-dry-run
Oct 31, 2026
Merged

dan-petty merged 1 commit into
mainfrom
feat/2239-k8s-manifest-dry-run

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Summary

  • Add dry-run support for 18 Kubernetes manifest, stack, and kustomize commands.
  • Classify 16 commands as request-plan: k8s apply, k8s bootstrap, k8s bootstrap-openwebui, k8s chaos, k8s check-deprecated, k8s configure-urls, k8s create-tls-secret, k8s diff-helm, k8s enable-tls, k8s render, k8s sync-secrets, k8s teardown-stack, k8s validate, kustomize apply, kustomize build, and kustomize diff.
  • Classify 2 commands as no-external-request: k8s lint and k8s validate-policy.
  • Add --dry-run to commands lacking it: k8s render, kustomize build, and kustomize diff.
  • Preview planned requests in dry run and make zero external socket, network, or subprocess calls.
  • Remove all 18 commands from tests/fixtures/dry_run_gaps.json.
  • Regenerate documentation and CLI references.

Verification

  • Ran test suite in tests/commands/test_k8s_manifest_dry_run.py (48 passed).
  • Verified ratchet invariant in tests/invariants/test_dry_run_class_ratchet.py (7 passed).
  • Ran k8s and kustomize test suites in tests/commands/k8s/, tests/k8s/, and tests/commands/test_kustomize*.py (1145 passed).
  • Archived OpenSpec change 2239-k8s-manifest-dry-run with uv run devops openspec archive.
  • Passed fast static quality gates (python version, lint, format, typecheck, actionlint, zizmor).

Closes #2239

@dan-petty dan-petty added type/feature Type feature: a new function scope/k8s Kubernetes commands, Helm charts, pods, services, and policies labels Oct 31, 2026
@dan-petty
dan-petty force-pushed the feat/2239-k8s-manifest-dry-run branch from 2873f06 to ed88617 Compare October 31, 2026 12:15
@dan-petty dan-petty changed the title feat(k8s): preview requests in dry run for manifest and kustomize commands feat(k8s): preview requests in dry run for manifest commands Oct 31, 2026
Add dry-run support for 18 Kubernetes manifest, stack, and kustomize commands.
Classify 16 commands as request-plan:
k8s apply, k8s bootstrap, k8s bootstrap-openwebui, k8s chaos,
k8s check-deprecated, k8s configure-urls, k8s create-tls-secret,
k8s diff-helm, k8s enable-tls, k8s render, k8s sync-secrets,
k8s teardown-stack, k8s validate, kustomize apply, kustomize build,
and kustomize diff.
Classify 2 commands as no-external-request:
k8s lint and k8s validate-policy.
Add the --dry-run option to k8s render, kustomize build, and kustomize diff.
Preview planned kubectl, helm, kustomize, and pluto requests in dry run.
Make zero external requests during dry run.
Remove all 18 commands from tests/fixtures/dry_run_gaps.json.
Regenerate documentation and CLI references.

Closes #2239
@dan-petty
dan-petty force-pushed the feat/2239-k8s-manifest-dry-run branch from ed88617 to b9379bc Compare October 31, 2026 12:16
@dan-petty
dan-petty marked this pull request as ready for review October 31, 2026 12:23
@dan-petty
dan-petty merged commit 92be95c into main Oct 31, 2026
19 checks passed
@dan-petty
dan-petty deleted the feat/2239-k8s-manifest-dry-run branch October 31, 2026 12:26
dan-petty pushed a commit that referenced this pull request Oct 31, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.27.0](v0.26.1...v0.27.0)
(2026-10-31)


### Features

* **ai:** preview requests in dry run for model and gateway
([#2862](#2862))
([efd6159](efd6159)),
closes [#2241](#2241)
* **argo:** preview requests in dry run for argo commands
([#2855](#2855))
([9b18d68](9b18d68)),
closes [#2240](#2240)
* **k8s:** preview requests in dry run for manifest commands
([#2851](#2851))
([92be95c](92be95c)),
closes [#2239](#2239)

---
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/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(k8s): k8s manifest, stack and kustomize commands list their requests in a dry run and make none

1 participant