Skip to content

Commit

Permalink
Continue to set deprecated replica.Status.EvictionRequested field
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Weber <eric.weber@suse.com>
  • Loading branch information
ejweber committed Nov 1, 2023
1 parent ec04802 commit b10252e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions controller/replica_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,9 @@ func (rc *ReplicaController) syncReplica(key string) (err error) {
}
}()

// Deprecated and no longer used by Longhorn, but maybe someone's external tooling uses it? Remove in v1.7.0.
replica.Status.EvictionRequested = replica.Spec.EvictionRequested

return rc.instanceHandler.ReconcileInstanceState(replica, &replica.Spec.InstanceSpec, &replica.Status.InstanceStatus)
}

Expand Down

0 comments on commit b10252e

Please sign in to comment.