Skip to content

Commit be38d5c

Browse files
committed
feat(v2): remove DR volume blocking in webhook
longhorn/longhorn-6613 Signed-off-by: Chin-Ya Huang <[email protected]>
1 parent dd85e42 commit be38d5c

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

webhook/resources/volume/validator.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,6 @@ func (v *volumeValidator) Create(request *admission.Request, newObj runtime.Obje
153153
if volume.Spec.BackingImage != "" {
154154
return werror.NewInvalidError("backing image is not supported for data engine v2", "")
155155
}
156-
if volume.Spec.Standby {
157-
return werror.NewInvalidError("standby is not supported for data engine v2", "")
158-
}
159156
}
160157

161158
return nil
@@ -312,9 +309,6 @@ func (v *volumeValidator) Update(request *admission.Request, oldObj runtime.Obje
312309
return werror.NewInvalidError(err.Error(), "")
313310
}
314311
}
315-
if newVolume.Spec.Standby {
316-
return werror.NewInvalidError("standby is not supported for data engine v2", "")
317-
}
318312
}
319313

320314
// prevent the changing v.Spec.MigrationNodeID to different node when the volume is doing live migration (when v.Status.CurrentMigrationNodeID != "")

0 commit comments

Comments
 (0)