mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-25 06:52:13 +00:00
vc: hypervisor: remove setSandbox
The hypervisor interface implementation should not know a thing about sandboxes. Fixes: #2882 Signed-off-by: Eric Ernst <eric_ernst@apple.com>
This commit is contained in:
parent
2227c46c25
commit
ce92cadc7d
@ -1271,6 +1271,3 @@ func (clh *cloudHypervisor) vmInfo() (chclient.VmInfo, error) {
|
||||
func (clh *cloudHypervisor) IsRateLimiterBuiltin() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (clh *cloudHypervisor) setSandbox(sandbox *Sandbox) {
|
||||
}
|
||||
|
@ -1274,6 +1274,3 @@ func revertBytes(num uint64) uint64 {
|
||||
}
|
||||
return 1024*revertBytes(a) + b
|
||||
}
|
||||
|
||||
func (fc *firecracker) setSandbox(sandbox *Sandbox) {
|
||||
}
|
||||
|
@ -945,6 +945,4 @@ type Hypervisor interface {
|
||||
|
||||
// check if hypervisor supports built-in rate limiter.
|
||||
IsRateLimiterBuiltin() bool
|
||||
|
||||
setSandbox(sandbox *Sandbox)
|
||||
}
|
||||
|
@ -149,6 +149,3 @@ func (m *mockHypervisor) GenerateSocket(id string) (interface{}, error) {
|
||||
func (m *mockHypervisor) IsRateLimiterBuiltin() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (m *mockHypervisor) setSandbox(sandbox *Sandbox) {
|
||||
}
|
||||
|
@ -2541,6 +2541,3 @@ func (q *qemu) GenerateSocket(id string) (interface{}, error) {
|
||||
func (q *qemu) IsRateLimiterBuiltin() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (q *qemu) setSandbox(sandbox *Sandbox) {
|
||||
}
|
||||
|
@ -525,8 +525,6 @@ func newSandbox(ctx context.Context, sandboxConfig SandboxConfig, factory Factor
|
||||
swapDevices: []*config.BlockDrive{},
|
||||
}
|
||||
|
||||
hypervisor.setSandbox(s)
|
||||
|
||||
if s.store, err = persist.GetDriver(); err != nil || s.store == nil {
|
||||
return nil, fmt.Errorf("failed to get fs persist driver: %v", err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user