I encountered a similar issue to the one described here: kubernetes configmap prints \n instead of a newline. I found that the online tool yamllint.com worked wonders for resolving my problem! it pretty-print my data as well.
Now, I'm looking for a way to achieve the same results on a Linux machine without internet access. I've installed yamllint on Ubuntu (apt install yamllint), but when I run it to correct my YAML file, it displays numerous errors without providing a fixed version of the file.
I understand that the Linux CLI version of yamllint requires some configuration. Could you advise me on the necessary configuration to ensure that yamllint on Linux can run as effectively as the online version?
Thanks