Skip to content

Commit d32dc0e

Browse files
authored
Merge pull request containerd#9847 from akhilerm/replace-prestart-oci-hook
replace deprecated Prestart to CreateRuntime hook
2 parents 16da4de + 0693b93 commit d32dc0e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

contrib/nvidia/nvidia.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func WithGPUs(opts ...Opts) oci.SpecOpts {
8787
if s.Hooks == nil {
8888
s.Hooks = &specs.Hooks{}
8989
}
90-
s.Hooks.Prestart = append(s.Hooks.Prestart, specs.Hook{
90+
s.Hooks.CreateRuntime = append(s.Hooks.CreateRuntime, specs.Hook{
9191
Path: c.OCIHookPath,
9292
Args: append([]string{
9393
"containerd",

integration/client/container_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1737,7 +1737,7 @@ func TestContainerHook(t *testing.T) {
17371737
if err != nil {
17381738
return err
17391739
}
1740-
s.Hooks.Prestart = []specs.Hook{
1740+
s.Hooks.CreateRuntime = []specs.Hook{
17411741
{
17421742
Path: path,
17431743
Args: []string{

0 commit comments

Comments
 (0)