You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(k8s): devops k8s apply runs for real under its own --dry-run #2312
In src/devops_cli/commands/k8s/cluster_context.py:182, devops k8s apply declares --dry-run.
The function does not call set_dry_run(dry_run).
Because the function does not set dry-run state, is_dry_run() evaluates to False.
Execution continues to runtime._run_cmd(cmd, check=True) at line 231.
The command executes kubectl apply -f <path> --dry-run=client against the Kubernetes cluster.
Under #412 and #986, contacting the remote cluster under --dry-run is external communication.
Proposed Solution
Check dry_run or is_dry_run() and render the preview before the subprocess runner.
Use render_dry_run_result(command="devops k8s apply", ...) to show the planned action.
Ensure the command starts zero child processes.
Activity
dan-petty commentedon Oct 26, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.
The candidate describes a defect where the --dry-run flag does not work correctly in the k8s apply command.This is a functional bug that affects dry-run behavior but does not break core functionality.Fixes incorrect behavior of a key command and improves user experience with dry-run previews.Requires modifying one function to check dry-run state and add preview rendering, but does not require major architectural changes.Both items relate to k8s commands and dry-run behavior, but the candidate fixes a specific bug in apply command while the related item is about adding dry-run support to multiple k8s read/access commands.chore(cli): survey argument-taking --dry-run command paths (#2316)
fix(k8s): k8s apply renders the preview under --dry-run and starts no…
chore(main): release 0.7.0 (#2329)