k8t icon indicating copy to clipboard operation
k8t copied to clipboard

Write output to directory

Open sl4vr opened this issue 5 years ago • 2 comments

Since k8t knows which template comes from which file it would be handy to be able to create manifests file structure in specified directory.

sl4vr avatar May 20 '20 18:05 sl4vr

I'm not sure I get the idea. Could you elaborate @sl4vr ?

AFriemann avatar Jun 16 '20 11:06 AFriemann

@AFriemann, k8t compiles all templates into standard output now. I suggest if --output=DIRECTORY specified, k8t would create corresponding file for every template and write it in specified directory. If template's name is nested, then k8t would also create all required sub-directories. It's pretty useless for production, when you want to just pipe output to kubectl apply, but should be pretty handy to review all the manifests.

sl4vr avatar Jun 16 '20 12:06 sl4vr