Skip to content

Commit

Permalink
Fix fluxcd#177 Do not copy labels from canary to primary deployment
Browse files Browse the repository at this point in the history
Use the labels defined in Canary.Spec.Deployment.Labels
  • Loading branch information
carlossg committed May 10, 2019
1 parent d2308d1 commit de1b7b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/canary/deployer.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ func (c *Deployer) createPrimaryDeployment(cd *flaggerv1.Canary) (string, error)
primaryDep = &appsv1.Deployment{
ObjectMeta: metav1.ObjectMeta{
Name: primaryName,
Labels: canaryDep.Labels,
Labels: cd.Spec.Deployment.Labels,
Namespace: cd.Namespace,
OwnerReferences: []metav1.OwnerReference{
*metav1.NewControllerRef(cd, schema.GroupVersionKind{
Expand Down

0 comments on commit de1b7b3

Please sign in to comment.