image-automation-controller icon indicating copy to clipboard operation
image-automation-controller copied to clipboard

Tool (or library for inclusion in CLI) for adding setter markers

Open squaremo opened this issue 5 years ago • 3 comments

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.

squaremo avatar Oct 21 '20 10:10 squaremo

Is there an existing tool that might fit this use case?

kingdonb avatar Oct 06 '21 12:10 kingdonb

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.

stefanprodan avatar Oct 06 '21 12:10 stefanprodan

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.

squaremo avatar Oct 06 '21 13:10 squaremo