Skip to content

Review a YAML draft

Available in v0.18.0 in the shared YAML editor. Supported writes still depend on the resource, RBAC, read-only settings and context protection.

  1. Open YAML for a supported resource and begin editing. The editor retains the snapshot from the start of the edit.
  2. Select Review changes to compare that snapshot with the unsubmitted draft. Select Edit draft to return to editing.
  3. Use Revert draft to restore the edit-start text. This only changes the local draft; it does not roll back the cluster.
  4. Validate with the server dry-run and review its effective output separately from your typed changes. Any text change invalidates previous validation.
  5. Apply only after reviewing the target and completing the required confirmation.

If freshly loaded resource data differs during editing, Lumen preserves the draft and blocks further validation/apply until Reload latest (discard draft). Reload deliberately discards your edits; review the new snapshot before trying again. A dry-run does not lock the object against another writer.

Oversized documents display a notice when line comparison is unavailable. The complete draft remains editable. This shared editor workflow is separate from the unreleased custom-resource instance editor.

Sources: YAML draft review, src/components/YamlModal.tsx, src/components/YamlDiffView.tsx, and src/lib/yamlLineDiff.ts at v0.18.0.