Skip to content

Commit

Permalink
Update test modules
Browse files Browse the repository at this point in the history
Signed-off-by: Kathryn Baldauf <kabaldau@microsoft.com>
  • Loading branch information
katiewasnothere committed Sep 8, 2022
1 parent b7743c9 commit 7229955
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions hooks/spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,6 @@ const (
// CreateRuntime is called immediately after the deprecated Prestart hook.
// CreateRuntime commands are called in the Runtime Namespace.
CreateRuntime HookName = "createRuntime"

// StartContainer hooks MUST be called before the user-specified process is executed as
// part of the start operation. This hook can be used to execute some operations in the
// container, for example running the ldconfig binary on linux before the container process
// is spawned. The StartContainer hooks' path MUST resolve in the container namespace.
// The StartContainer hooks MUST be executed in the container namespace.
StartContainer HookName = "startContainer"
)

// NewOCIHook creates a new oci.Hook with given parameters
Expand All @@ -53,8 +46,6 @@ func AddOCIHook(spec *oci.Spec, hn HookName, hk oci.Hook) error {
spec.Hooks.Prestart = append(spec.Hooks.Prestart, hk)
case CreateRuntime:
spec.Hooks.CreateRuntime = append(spec.Hooks.CreateRuntime, hk)
case StartContainer:
spec.Hooks.StartContainer = append(spec.Hooks.StartContainer, hk)
default:
return fmt.Errorf("hook %q is not supported", hn)
}
Expand Down

0 comments on commit 7229955

Please sign in to comment.