ignore MirrorPercentage in reconcileVirtualService

This commit is contained in:
mathetake
2020-03-10 14:54:57 +09:00
parent 3a887afa38
commit aec0010b14
+1 -1
View File
@@ -206,7 +206,7 @@ func (ir *IstioRouter) reconcileVirtualService(canary *flaggerv1.Canary) error {
newSpec,
virtualService.Spec,
cmpopts.IgnoreFields(istiov1alpha3.DestinationWeight{}, "Weight"),
cmpopts.IgnoreFields(istiov1alpha3.HTTPRoute{}, "Mirror"),
cmpopts.IgnoreFields(istiov1alpha3.HTTPRoute{}, "Mirror", "MirrorPercentage"),
); diff != "" {
vtClone := virtualService.DeepCopy()
vtClone.Spec = newSpec