From 41ab9a5e853097188e39c219ca2e3dc8b759f98c Mon Sep 17 00:00:00 2001 From: Derek Su Date: Mon, 13 May 2024 06:03:13 +0000 Subject: [PATCH] v2 volume: expose all replica instances Expose all logical volume and attach it to attached node. Longhorn 8551 Signed-off-by: Derek Su --- controller/replica_controller.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/controller/replica_controller.go b/controller/replica_controller.go index 6996faf314..6876d3c6d2 100644 --- a/controller/replica_controller.go +++ b/controller/replica_controller.go @@ -376,18 +376,13 @@ func (rc *ReplicaController) CreateInstance(obj interface{}) (*longhorn.Instance return nil, err } - exposeRequired := true - if v.Spec.NodeID == rc.controllerID { - exposeRequired = false - } - return c.ReplicaInstanceCreate(&engineapi.ReplicaInstanceCreateRequest{ Replica: r, DiskName: diskName, DataPath: dataPath, BackingImagePath: backingImagePath, DataLocality: v.Spec.DataLocality, - ExposeRequired: exposeRequired, + ExposeRequired: true, ImIP: im.Status.IP, EngineCLIAPIVersion: cliAPIVersion, })