replace deprecated Prestart to CreateRuntime hook
Prestart Hook is deprecated and can be replaced with CreateRuntime hook Signed-off-by: Akhil Mohan <akhilerm@gmail.com>
This commit is contained in:
parent
4612201f87
commit
0693b936d2
@ -87,7 +87,7 @@ func WithGPUs(opts ...Opts) oci.SpecOpts {
|
||||
if s.Hooks == nil {
|
||||
s.Hooks = &specs.Hooks{}
|
||||
}
|
||||
s.Hooks.Prestart = append(s.Hooks.Prestart, specs.Hook{
|
||||
s.Hooks.CreateRuntime = append(s.Hooks.CreateRuntime, specs.Hook{
|
||||
Path: c.OCIHookPath,
|
||||
Args: append([]string{
|
||||
"containerd",
|
||||
|
@ -1737,7 +1737,7 @@ func TestContainerHook(t *testing.T) {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
s.Hooks.Prestart = []specs.Hook{
|
||||
s.Hooks.CreateRuntime = []specs.Hook{
|
||||
{
|
||||
Path: path,
|
||||
Args: []string{
|
||||
|
Loading…
Reference in New Issue
Block a user