-
Notifications
You must be signed in to change notification settings - Fork 227
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
Consistent YAML formatting #1722
Comments
I think having a dedicated command to format resources sounds useful to me. Which subcommand group we should bring it in ? |
|
How about having it as a format function instead ? By default any such functionality should be a function unless there is a great need to include it as part of cli. |
It seems we start to format the resources in |
Yes. |
Thanks for clarification! |
kpt needs to consistently format resources. Previously, there was
kpt cfg fmt
which is now removed in favor of having a global flag that controls styling/formatting as a cross-cutting feature.As part of this, all examples in
/package-examples
(highest priority) and test data should be pre-formatted (Unless testing formatting logic itself). For example,eval
comand on the nginx package in the Quickstart produces formatting changes which creates unnecessary noise:https://kpt.dev/book/01-getting-started/02-quickstart
What's worse, there's no way to automatically preformat the example. We should also reconsider removing
fmt
command.The text was updated successfully, but these errors were encountered: