YAML Editor & Diff

Edit live resources, review diffs, and compare revisions without leaving the Kubernetes context you are debugging.

Editor

Krust opens standalone editor windows for any Kubernetes resource. The editor is powered by STTextView and includes:

The editor is designed for operational patches and inspections, not as a replacement for GitOps. Use it when you need to understand current live state, apply a small tactical change, or verify what the API server accepted.

Apply Flow

  1. Open a resource from the context menu or command palette.
  2. Make a focused YAML change in the editor window.
  3. Press Cmd+S to apply the update to the current cluster context.
  4. If Kubernetes rejects the change, Krust shows the validation error inline so you can correct it without losing the editor state.

Keep changes small and explicit. For large application changes, push through your normal deployment or GitOps path and use Krust to inspect the result.

Revision Diff Free

Compare previous revisions of workload resources to see exactly what changed:

Krust revision diff showing Deployment rollback with colored additions and deletions between Rev 1 and Rev 8

Rollback dialog with inline revision diff — red lines removed, green lines added between revisions.

Resource Diff

Compare resources side-by-side with context-aware gating:

Same-context diff is useful for normal review work. Cross-cluster diff is aimed at incident response, where you need to compare production and staging or two regional clusters quickly.

Common Use Cases