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

Run on a (recursive) directory of yaml files #56

Open
torhovland opened this issue Jan 4, 2023 · 2 comments
Open

Run on a (recursive) directory of yaml files #56

torhovland opened this issue Jan 4, 2023 · 2 comments

Comments

@torhovland
Copy link

Would be nice if this tool could convert a whole tree of yaml files into corresponding tf files.

@jrhouston
Copy link
Owner

jrhouston commented Jan 11, 2023

That would be a nice shorthand, we could have tfk8s -d dirname/ to convert a whole tree. In the meantime you could use tfk8s in conjunction with find like this:

find dirname/ -name '*.yaml' -type f -exec sh -c 'tfk8s -f {} -o $(echo {} | sed "s/\.[^.]*$//").tf' \;

@torhovland
Copy link
Author

Thanks. That would be nice to include in the README.

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

2 participants