mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-24 01:24:26 +01:00
hook: Move OCI hooks handling to the CLI
The CLI being the implementation of the OCI specification, and the hooks being OCI specific, it makes sense to move the handling of any OCI hooks to the CLI level. This changes allows the Kata API to become OCI agnostic. Fixes #599 Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
@@ -143,22 +143,10 @@ func newTestSandboxConfigHyperstartAgentDefaultNetwork() SandboxConfig {
|
||||
SockTtyName: testHyperstartTtySocket,
|
||||
}
|
||||
|
||||
hooks := Hooks{
|
||||
PreStartHooks: []Hook{
|
||||
{
|
||||
Path: getMockHookBinPath(),
|
||||
Args: []string{testKeyHook, testContainerIDHook, testControllerIDHook},
|
||||
},
|
||||
},
|
||||
PostStartHooks: []Hook{},
|
||||
PostStopHooks: []Hook{},
|
||||
}
|
||||
|
||||
netConfig := NetworkConfig{}
|
||||
|
||||
sandboxConfig := SandboxConfig{
|
||||
ID: testSandboxID,
|
||||
Hooks: hooks,
|
||||
ID: testSandboxID,
|
||||
|
||||
HypervisorType: MockHypervisor,
|
||||
HypervisorConfig: hypervisorConfig,
|
||||
|
||||
Reference in New Issue
Block a user