Summary
Agents should be able to preview the effect of mutating operations before executing them. A --dry-run flag on all mutating commands enables agents to validate actions and present them to users for confirmation.
Proposal
- Add
--dry-run flag to all mutating operations (create, delete, start)
- Perform local validation before Kubernetes API calls
- Return would-be changes in structured JSON format
- Enable agents to preview actions before execution
Acceptance Criteria
Context
Part of #2849 — making tkn agent-friendly.
Note: Kubernetes already supports server-side dry-run (--dry-run=server). This may leverage that mechanism where applicable, but should also cover tkn-specific validation (e.g., parameter completeness for tkn pipeline start).
/kind feature
Summary
Agents should be able to preview the effect of mutating operations before executing them. A
--dry-runflag on all mutating commands enables agents to validate actions and present them to users for confirmation.Proposal
--dry-runflag to all mutating operations (create,delete,start)Acceptance Criteria
--dry-runflag available on all mutating commands--output jsonis used)Context
Part of #2849 — making tkn agent-friendly.
Note: Kubernetes already supports server-side dry-run (
--dry-run=server). This may leverage that mechanism where applicable, but should also cover tkn-specific validation (e.g., parameter completeness fortkn pipeline start)./kind feature