image-automation-controller
image-automation-controller copied to clipboard
Tool (or library for inclusion in CLI) for adding setter markers
It would be quite handy to be able to use a tool to mark all the uses of an image, rather than having to go and add the markers yourself.
Is there an existing tool that might fit this use case?
Given that a container image tag can be anywhere in a custom resource (e.g. HelmRelease values) I find it hard to believe such a tool exists. For well known kinds like Deployment, CronJob, etc it could be done I think.
Is there an existing tool that might fit this use case?
No, because we use our own markers, but kpt (and the code in kyaml it uses fairly directly) is pretty close.
Given that a container image tag can be anywhere in a custom resource (e.g. HelmRelease values) I find it hard to believe such a tool exists.
It's not necessary to know the schema -- you can just deal with the abstract syntax, and this is what kyaml does. It might need to be adapted to work with 1. the markers used here and 2. looking for image refs specifically.