setting change cause for versioned deployment

pull/162/head
Karolis Rusenas 2018-03-17 20:16:42 +00:00
parent cf1c4cc6cc
commit 110eeb3d24
1 changed files with 1 additions and 0 deletions

View File

@ -220,6 +220,7 @@ func (p *Provider) updateDeployments(plans []*UpdatePlan) (updated []*v1beta1.De
err = p.forceUpdate(&deployment)
} else {
// regular update
deployment.Annotations["kubernetes.io/change-cause"] = fmt.Sprintf("keel automated update version %s -> %s", plan.CurrentVersion, plan.NewVersion)
err = p.implementer.Update(&deployment)
}
if err != nil {