Closed pikrzysztof closed 5 years ago
Hey @pikrzysztof, thank you for the report.
Indeed, I suspect the line numbers are off-by-one 🙈, we'll get that fixed.
As for the actual problem you are running into, it looks like your indentation is a bit off. YAML is whitespace sensitive (similar to Python), so if you indent too much, or not enough, you'll get these kinds of errors.
In this case, it looks like values
on line 37 is indented with 4 spaces, instead of 2. I suspect if you de-indent lines 37 to 48 by 2 spaces, things should work as expected.
Thank you for your prompt response. I'd love to see kubecrt
tell me what was expected and what exactly failed without raising a ticket.
That's a fair point @pikrzysztof. Right now, Kubecrt is a thin wrapper around the Go YAML and Helm packages, and any errors they report are bubbled up as output of the CLI.
In this case, the error you see is from the YAML package.
If we wanted to improve this message, we would have to write our own parser or switch to another library with more sophisticated error messages (if any exist). I don't see either of the two happening anytime soon, unless anyone wants to contribute, so unfortunately we'll have to accept the status quo.
Feel free to comment with any other issue you run into that isn't easy to debug though. Even though we might not be able to improve the error message right now, at least having an archive of issues to search through will help anyone running into this in the future.
This is my first time using this tool. I'd like to know what went wrong, which variable was unset or what key was expected and where. The error message highlights line 36 which is a comment so I guess it's about line 37?