From e4b38d404a5c10be4796bc8d36b20f365f0e64ae Mon Sep 17 00:00:00 2001 From: Chin-Ya Huang Date: Mon, 29 Jul 2024 12:10:57 +0800 Subject: [PATCH] feat(v2): remove DR volume blocking in webhook longhorn/longhorn-6613 Signed-off-by: Chin-Ya Huang --- webhook/resources/volume/validator.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/webhook/resources/volume/validator.go b/webhook/resources/volume/validator.go index d4d67765a3..0e59a70843 100644 --- a/webhook/resources/volume/validator.go +++ b/webhook/resources/volume/validator.go @@ -153,9 +153,6 @@ func (v *volumeValidator) Create(request *admission.Request, newObj runtime.Obje if volume.Spec.BackingImage != "" { return werror.NewInvalidError("backing image is not supported for data engine v2", "") } - if volume.Spec.Standby { - return werror.NewInvalidError("standby is not supported for data engine v2", "") - } } return nil @@ -312,9 +309,6 @@ func (v *volumeValidator) Update(request *admission.Request, oldObj runtime.Obje return werror.NewInvalidError(err.Error(), "") } } - if newVolume.Spec.Standby { - return werror.NewInvalidError("standby is not supported for data engine v2", "") - } } // prevent the changing v.Spec.MigrationNodeID to different node when the volume is doing live migration (when v.Status.CurrentMigrationNodeID != "")