Add change cause for "Kontemplate apply"
ksudheernathreddy opened this issue · 2 comments
Hi,
We were deploying all our microservices via kontemplate, for each update there could be a change in docker image of one or more microservices. It would be nice if I can add a change cause on kontemplate level, which internally adds change cause for each microservice.
For example, I want to keep track of application(based on microservices) versions in kubernetes. Even If there is a change in single microservice or more, I will be versioning my application as next version(1.0.0 to 1.1.0). So when I do kontemplate apply for application version 1.1.0, if it adds change cause for all microservices(as 1.1.0), it would be easy to roll back one or more microservices based on revision number(change cause with version name will be associated with it).
Thanks in advance.
Hey!
Do you mean the kubernetes.io/change-cause
annotation explicitly?
It's not entirely clear to me from kubernetes/kubernetes#25554 whether that is now supported or not 🤔
One thing you could already do today is add this annotation to your templates with, for example, the git hash of the repository in which you keep your kontemplate templates:
annotations:
kubernetes.io/change-cause: "Kontemplate revision {{ gitHEAD }}"