sandbox: store endpoint in cri sandboxStore
Signed-off-by: Abel Feng <fshb1988@gmail.com>
This commit is contained in:
@@ -117,6 +117,9 @@ type ControllerInstance struct {
|
||||
SandboxID string
|
||||
Pid uint32
|
||||
CreatedAt time.Time
|
||||
Address string
|
||||
Protocol string
|
||||
Version uint32
|
||||
Labels map[string]string
|
||||
}
|
||||
|
||||
@@ -133,4 +136,7 @@ type ControllerStatus struct {
|
||||
CreatedAt time.Time
|
||||
ExitedAt time.Time
|
||||
Extra typeurl.Any
|
||||
Address string
|
||||
Protocol string
|
||||
Version uint32
|
||||
}
|
||||
|
||||
@@ -73,6 +73,9 @@ func (s *remoteSandboxController) Start(ctx context.Context, sandboxID string) (
|
||||
Pid: resp.GetPid(),
|
||||
CreatedAt: resp.GetCreatedAt().AsTime(),
|
||||
Labels: resp.GetLabels(),
|
||||
Address: resp.GetAddress(),
|
||||
Protocol: resp.GetProtocol(),
|
||||
Version: resp.GetVersion(),
|
||||
}, nil
|
||||
}
|
||||
|
||||
@@ -141,6 +144,9 @@ func (s *remoteSandboxController) Status(ctx context.Context, sandboxID string,
|
||||
CreatedAt: resp.GetCreatedAt().AsTime(),
|
||||
ExitedAt: resp.GetExitedAt().AsTime(),
|
||||
Extra: resp.GetExtra(),
|
||||
Address: resp.GetAddress(),
|
||||
Protocol: resp.GetProtocol(),
|
||||
Version: resp.GetVersion(),
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user