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

allow splitting multidoc yaml into files by key #53

Open
tl-eirik-albrigtsen opened this issue Aug 28, 2024 · 0 comments
Open

allow splitting multidoc yaml into files by key #53

tl-eirik-albrigtsen opened this issue Aug 28, 2024 · 0 comments

Comments

@tl-eirik-albrigtsen
Copy link

ala yq's --split-exp

yq -s '"some/folder/prefix/" + (.kind | downcase) + "." + (.metadata.name | downcase) + ".yaml" the-large-file.yaml

to allow rapidly force splitting yaml files by e.g. kubernetes kind

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