-
Notifications
You must be signed in to change notification settings - Fork 62
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
Add option to sort file by resource name #51
Comments
I'm open to adding a flag for this @AndreasBergmeier6176 but you could use a tool like yq to pre-process the YAML into the sort order you want, like this:
|
Sorry, maybe I wasn't clear enough. While I think your approach works, we semantically usually sort by Terraform Name not Kubernetes Name. So to do something along these lines we would need a tool like "hclq" - but I haven't used it yet. |
Ah gotcha. You want to use the generated terraform resource name as the sort key. The name that gets generated for the terraform resource name is just a concatenation of
I will concede that is clunky because you need to know that implementation detail of the |
No description provided.
The text was updated successfully, but these errors were encountered: