Fix svc update conflict

This commit is contained in:
stefanprodan
2020-05-14 11:08:32 +03:00
parent 6cfa432834
commit e7f2d22505

View File

@@ -184,7 +184,6 @@ func (c *KubernetesDefaultRouter) reconcileService(canary *flaggerv1.Canary, nam
if portsDiff != "" || selectorsDiff != "" {
svcClone.Spec.Ports = svcSpec.Ports
svcClone.Spec.Selector = svcSpec.Selector
_, err = c.kubeClient.CoreV1().Services(canary.Namespace).Update(context.TODO(), svcClone, metav1.UpdateOptions{})
updateService = true
}