Skip to content

feat: kubectl-style apply command with --dry-run and -o yaml#67

Merged
robbycochran merged 3 commits into
mainfrom
rc-render-snapshot
Jun 17, 2026
Merged

feat: kubectl-style apply command with --dry-run and -o yaml#67
robbycochran merged 3 commits into
mainfrom
rc-render-snapshot

Conversation

@robbycochran

Copy link
Copy Markdown
Collaborator

Summary

  • harness apply replaces up and create as the primary interface
  • --dry-run validates config without deploying (reports pass/fail for gateway, providers, env, image)
  • -o yaml outputs fully resolved harness YAML with all referenced providers and gateways
  • -o json outputs machine-readable config summary
  • --attach flag for interactive TTY (default: headless)
  • --gateway reads OPENSHELL_GATEWAY env var as fallback (#1851 plugin compat)
  • up, create, render marked as hidden deprecated aliases with cobra Deprecated field
  • Upstream conventions added to AGENTS.md (output format, credential exclusion, policy schema, provider abstraction, plugin compatibility)
  • .agents/skills/validate/ codifies the full test matrix
  • Sequenced 4-phase CLI refactor plan in TODO.md

Test plan

  • go build ./... passes
  • go test ./... passes (all packages)
  • go vet ./... passes
  • Local integration: 22/22 passed
  • Local integration --ci: 14/14 passed
  • OCP integration: 10/10 passed
  • harness apply --dry-run validates correctly
  • harness apply -o yaml outputs resolved config
  • harness up shows deprecation warning
  • CI workflows green

- harness apply -f agent.yaml replaces up and create as primary interface
- --dry-run validates config without deploying (gateway, providers, env, image)
- -o yaml outputs fully resolved harness YAML with all providers/gateways
- -o json outputs machine-readable config summary
- --attach flag for interactive TTY (default: headless, flips old up behavior)
- --gateway reads OPENSHELL_GATEWAY env var as fallback (#1851 plugin compat)
- up, create, render marked as hidden deprecated aliases
- test-flow.sh updated to use apply verb
- Add upstream conventions to AGENTS.md (output format, credential exclusion,
  policy schema alignment, provider abstraction, plugin compatibility)
- Add .agents/skills/validate/ for codified test matrix
- Sequenced CLI refactor plan in TODO.md (4 phases: apply, get/describe,
  delete, docs)
@robbycochran robbycochran merged commit 013e923 into main Jun 17, 2026
5 checks passed
@robbycochran robbycochran deleted the rc-render-snapshot branch June 17, 2026 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant