Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Su <derek.su@suse.com>
  • Loading branch information
derekbit committed Jun 4, 2024
1 parent 762d26a commit bc19699
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions pkg/client/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ func NewInstanceServiceClientWithTLS(ctx context.Context, ctxCancel context.Canc
type EngineCreateRequest struct {
ReplicaAddressMap map[string]string
Frontend string
InitiatorIP string
TargetIP string
UpgradeRequired bool
}

Expand Down Expand Up @@ -190,6 +192,8 @@ func (c *InstanceServiceClient) InstanceCreate(req *InstanceCreateRequest) (*api

UpgradeRequired: req.Engine.UpgradeRequired,
TargetAddress: uri.Hostname(),
InitiatorIp: req.Engine.InitiatorIP,
TargetIp: req.Engine.TargetIP,
},
})
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/instance/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func (ops V2DataEngineInstanceOps) InstanceCreate(req *rpc.InstanceCreateRequest
switch req.Spec.Type {
case types.InstanceTypeEngine:
engine, err := c.EngineCreate(req.Spec.Name, req.Spec.VolumeName, req.Spec.SpdkInstanceSpec.Frontend, req.Spec.SpdkInstanceSpec.Size, req.Spec.SpdkInstanceSpec.ReplicaAddressMap,
req.Spec.PortCount, req.Spec.UpgradeRequired, req.Spec.TargetAddress)
req.Spec.PortCount, req.Spec.UpgradeRequired, req.Spec.TargetAddress, req.Spec.InitiatorIp, req.Spec.TargetIp)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit bc19699

Please sign in to comment.