geofffranks / spruce

A BOSH template merge tool
MIT License
428 stars 77 forks source link

Is it possible to leave comments intact? #353

Closed TJM closed 2 years ago

TJM commented 2 years ago

We have been trying to use this tool to apply a simple change to a helmrelease file, but there are two things happening that are causing us pain..

I am assuming it is just reading in the data and merging them programmatically, then writing back out a new yaml file, with no knowledge of the original file, rather than modifying the original file with the changes from the others?

~tommy

geofffranks commented 2 years ago

You're correct in why that's happening. Unfortunately it is unlikely to change.

Something like ytt might be more what you're looking for, but i don't know how it deals with comments?