Skip to content

Commit

Permalink
fix(upgrade): do not change the revisionCounterDisabled
Browse files Browse the repository at this point in the history
It is an immutable field after creation

longhorn-9279

Signed-off-by: Phan Le <phan.le@suse.com>
(cherry picked from commit 01e7627)
  • Loading branch information
PhanLe1010 authored and derekbit committed Aug 26, 2024
1 parent cefa3e2 commit 2b523f7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions upgrade/v14xto150/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 2b523f7

Please sign in to comment.