[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Parse only some parts of a template



On Mon, Jul 9, 2018 at 3:56 PM Ben Parees <bparees redhat com> wrote:
I was wondering if there was any way to have only some parts of a template processed, for example i want to get the dc/route/is out of the template but not the bc or others,
no... you'd have to pass the template to oc process, redirect the result (a yaml list of resources) to a file and then do your additional filtering/parsing.

OK thanks, here is a python script that would do the filtering if someone else would find it useful : 

https://gist.github.com/chmouel/1e558420f8c2fd1d1eaaa16a97e46771

Chmouel
 
 

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]