Skip to content

Work is lost if I make a mistake in YAML format #20

Description

@werdnum

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions