mortar icon indicating copy to clipboard operation
mortar copied to clipboard

patch deployments on every fire

Open matti opened this issue 7 years ago • 2 comments

currently needs to have some build id or timestamp as a variable to make pods roll

matti avatar Oct 03 '18 16:10 matti

Not sure if Mortar can actually do this. The issue is that mortar does not really understand anything about the resources themselves. It only understands the higher level Kube stuff, metadata, labels, annotations, etc.. AFAIK changing some labels or annotation on the object level (in this case on a Deployment metadata) will not make pods roll. Mortar would need to understand the inner workings of Deployment and be able to change the deployments spec.template.metadata...

jnummelin avatar Oct 11 '18 08:10 jnummelin

Sure it can, just parse the resources, see if it is a deployment and add some stuff to spec.template.metadata

I'm doing this manually for every single deployment I have and the stuff is always the same.

matti avatar Oct 11 '18 11:10 matti