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 committed Aug 16, 2024
1 parent 5ef1fa0 commit 642d60b
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 642d60b

Please sign in to comment.