Skip to content

Commit

Permalink
feat(v2): remove DR volume blocking in webhook
Browse files Browse the repository at this point in the history
longhorn/longhorn-6613

Signed-off-by: Chin-Ya Huang <chin-ya.huang@suse.com>
  • Loading branch information
c3y1huang authored and derekbit committed Aug 28, 2024
1 parent 710c2be commit 719f613
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions webhook/resources/volume/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 != "")
Expand Down

0 comments on commit 719f613

Please sign in to comment.