From 2b523f724c84d9494c1742b78a1a315cdd9033af Mon Sep 17 00:00:00 2001 From: Phan Le Date: Fri, 23 Aug 2024 14:35:00 -0700 Subject: [PATCH] fix(upgrade): do not change the revisionCounterDisabled It is an immutable field after creation longhorn-9279 Signed-off-by: Phan Le (cherry picked from commit 01e76271f8fab585bc95ff2a556c8926e6fd5130) --- upgrade/v14xto150/upgrade.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/upgrade/v14xto150/upgrade.go b/upgrade/v14xto150/upgrade.go index 60a90a9fd5..9c4c8c5f20 100644 --- a/upgrade/v14xto150/upgrade.go +++ b/upgrade/v14xto150/upgrade.go @@ -106,9 +106,6 @@ func upgradeVolumes(namespace string, lhClient *lhclientset.Clientset, resourceM if v.Spec.BackupCompressionMethod == "" { v.Spec.BackupCompressionMethod = longhorn.BackupCompressionMethodGzip } - if v.Spec.DataLocality == longhorn.DataLocalityStrictLocal { - v.Spec.RevisionCounterDisabled = true - } if v.Spec.ReplicaSoftAntiAffinity == "" { v.Spec.ReplicaSoftAntiAffinity = longhorn.ReplicaSoftAntiAffinityDefault }