Repository navigation
feat(k8s): preview requests in dry run for cluster commands - #2839
Merged
Merged
Conversation
dan-petty
force-pushed
the
feat/2238-k8s-cluster-dry-run
branch
from
October 31, 2026 06:06
e0494b5 to
d1080f2
Compare
## Summary - Add dry-run support for 14 Kubernetes cluster read and access commands. - Classify 11 commands as request-plan: k8s audit, contexts, logs, pods, port-forward, rbac-audit, security-stream, service-url, status, stream-logs, and switch-context. - Classify 2 commands as no-external-request: k8s gpu-matrix and port-forward-status. - Classify 1 command as no-external-request with local preview: k8s port-forward-stop (accepts --dry-run and terminates zero daemons). - When --dry-run is supplied, preview the planned kubectl/Loki/Popeye requests and execute zero network, socket, or subprocess calls. - Remove all 14 commands from dry_run_gaps.json. - Regenerate documentation and CLI references. ## Verification - Ran test suite in tests/commands/test_k8s_dry_run.py (28 passed). - Verified ratchet invariant tests in tests/invariants/test_dry_run_class_ratchet.py (7 passed). - Ran k8s test suite in tests/commands/k8s/ (503 passed). - Verified OpenSpec validation: uv run devops openspec archive 2238-k8s-cluster-dry-run. - Passed fast static quality gates: python version, lint, format, actionlint, zizmor. Closes #2238
dan-petty
force-pushed
the
feat/2238-k8s-cluster-dry-run
branch
from
October 31, 2026 06:23
d1080f2 to
ccc9411
Compare
dan-petty
marked this pull request as ready for review
October 31, 2026 06:37
dan-petty
pushed a commit
that referenced
this pull request
Oct 31, 2026
🤖 I have created a release *beep* *boop* --- ## [0.26.0](v0.25.0...v0.26.0) (2026-10-31) ### Features * **k8s:** preview requests in dry run for cluster commands ([#2839](#2839)) ([b6de1a4](b6de1a4)), closes [#2238](#2238) * **pr:** preview requests in dry run for pr commands ([#2835](#2835)) ([2a9b746](2a9b746)), closes [#2234](#2234) ### Bug Fixes * **k8s:** enforce the window of each gateway deployment ([#2843](#2843)) ([2ff7d9f](2ff7d9f)), closes [#2825](#2825) * **roadmap:** measure a task group by the files its step reads ([#2847](#2847)) ([2f3986a](2f3986a)), closes [#2838](#2838) * **tests:** replace real test sleeps with clock ([#2169](#2169)) ([#2833](#2833)) ([506f769](506f769)) --- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Verification
Closes #2238