diff --git a/webhook/resources/volume/mutator.go b/webhook/resources/volume/mutator.go index eb2258de86..37fb9dafab 100644 --- a/webhook/resources/volume/mutator.go +++ b/webhook/resources/volume/mutator.go @@ -196,9 +196,6 @@ func (v *volumeMutator) Create(request *admission.Request, newObj runtime.Object // TODO: Remove the mutations below after they are implemented for SPDK volumes if types.IsDataEngineV2(volume.Spec.DataEngine) { - if volume.Spec.DataLocality != longhorn.DataLocalityDisabled { - patchOps = append(patchOps, fmt.Sprintf(`{"op": "replace", "path": "/spec/dataLocality", "value": "%s"}`, longhorn.DataLocalityDisabled)) - } if volume.Spec.SnapshotDataIntegrity != longhorn.SnapshotDataIntegrityDisabled { patchOps = append(patchOps, fmt.Sprintf(`{"op": "replace", "path": "/spec/snapshotDataIntegrity", "value": "%s"}`, longhorn.SnapshotDataIntegrityDisabled)) }