From 4bcf82d295550ed1e1184018104568acc7530f1b Mon Sep 17 00:00:00 2001 From: stefanprodan Date: Mon, 28 Jan 2019 11:02:33 +0200 Subject: [PATCH] Copy annotations from canary to primary on promotion --- pkg/controller/deployer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controller/deployer.go b/pkg/controller/deployer.go index 0bb048f3..f95d7af2 100644 --- a/pkg/controller/deployer.go +++ b/pkg/controller/deployer.go @@ -73,7 +73,7 @@ func (c *CanaryDeployer) Promote(cd *flaggerv1.Canary) error { primaryCopy.Spec.Template.Spec = c.configTracker.ApplyPrimaryConfigs(canary.Spec.Template.Spec, configRefs) // update pod annotations to ensure a rolling update - annotations, err := c.makeAnnotations(primaryCopy.Spec.Template.Annotations) + annotations, err := c.makeAnnotations(canary.Spec.Template.Annotations) if err != nil { return err }