Skip to content

Commit dad52ec

Browse files
committed
Fix #177 Do not copy labels from canary to primary deployment
Use the labels defined in Canary.Spec.Deployment.Labels
1 parent 9d0b9d6 commit dad52ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/canary/deployer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ func (c *Deployer) createPrimaryDeployment(cd *flaggerv1.Canary) (string, error)
214214
primaryDep = &appsv1.Deployment{
215215
ObjectMeta: metav1.ObjectMeta{
216216
Name: primaryName,
217-
Labels: canaryDep.Labels,
217+
Labels: cd.Spec.Deployment.Labels,
218218
Namespace: cd.Namespace,
219219
OwnerReferences: []metav1.OwnerReference{
220220
*metav1.NewControllerRef(cd, schema.GroupVersionKind{

0 commit comments

Comments
 (0)