Skip to content

Commit ab29785

Browse files
authored
Merge pull request #1232 from thaJeztah/go_prestarthook_deprecated
specs-go: add missing deprecation comment for Hooks.Prestart
2 parents c0e9043 + 4005c81 commit ab29785

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

specs-go/config.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,10 @@ type Hook struct {
187187
type Hooks struct {
188188
// Prestart is Deprecated. Prestart is a list of hooks to be run before the container process is executed.
189189
// It is called in the Runtime Namespace
190+
//
191+
// Deprecated: use [Hooks.CreateRuntime], [Hooks.CreateContainer], and
192+
// [Hooks.StartContainer] instead, which allow more granular hook control
193+
// during the create and start phase.
190194
Prestart []Hook `json:"prestart,omitempty"`
191195
// CreateRuntime is a list of hooks to be run after the container has been created but before pivot_root or any equivalent operation has been called
192196
// It is called in the Runtime Namespace

0 commit comments

Comments
 (0)