helm-edit icon indicating copy to clipboard operation
helm-edit copied to clipboard

Work is lost if I make a mistake in YAML format

Open werdnum opened this issue 1 year ago • 0 comments

Steps to reproduce:

  • helm edit something.
  • Make a mistake in your YAML syntax

Expected outcome: I get dropped back in the editor with a comment at the top with what I did wrong, or maybe I get a prompt to fix it and then it reopens the editor

Actual outcome:

Error: error converting YAML to JSON: yaml: line 25: mapping values are not allowed in this context
Usage:
  edit [flags] RELEASE

Flags:
  -a, --all                            edit all (computed) vals
  -m, --disable-default-intersection   If set, user supplied values that are the same as default values won't be "removed" from user supplied values (careful using with -a, setting both of this params won't "merge" the values and all values will become user supplied values)
  -e, --editor string                  name of the editor (default "$EDITOR")
  -h, --help                           help for edit
      --revision int                   edit the current chart with values from old revision
      --timeout duration               time to wait for any individual Kubernetes operation (like Jobs for hooks) (default 5m0s)
      --wait                           if set, will wait until all Pods, PVCs, Services, and minimum number of Pods of a Deployment are in a ready state before marking the release as successful. It will wait for as long as --timeout

Error: plugin "edit" exited with error

... and now I've lost my work and have to reproduce my changes again.

werdnum avatar Sep 07 '22 13:09 werdnum