From d796c206d35576a34d552512a3f827780cec8a3a Mon Sep 17 00:00:00 2001 From: rye-sw Date: Wed, 11 Oct 2023 11:55:17 -0700 Subject: [PATCH] Set original node selector value when finalizing service Signed-off-by: rye-sw --- pkg/router/kubernetes_default.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/router/kubernetes_default.go b/pkg/router/kubernetes_default.go index 61ffd7fd5..840005672 100644 --- a/pkg/router/kubernetes_default.go +++ b/pkg/router/kubernetes_default.go @@ -262,7 +262,7 @@ func (c *KubernetesDefaultRouter) Finalize(canary *flaggerv1.Canary) error { return fmt.Errorf("service %s update error: %w", clone.Name, err) } } else { - err = c.reconcileService(canary, apexName, canary.Spec.TargetRef.Name, nil) + err = c.reconcileService(canary, apexName, c.labelValue, nil) if err != nil { return fmt.Errorf("reconcileService failed: %w", err) }