Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
werdnum opened this issue Sep 7, 2022 · 0 comments
Open

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

werdnum opened this issue Sep 7, 2022 · 0 comments

Comments

@werdnum
Copy link

werdnum commented Sep 7, 2022

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.

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

No branches or pull requests

1 participant