Skip to content

Conversation

@wking
Copy link
Contributor

@wking wking commented May 31, 2017

Not all hooks are run after creation. In fact, there are currently no postcreate hooks (prestart hooks are called “after the start operation is called but before the user-specified program command is executed”. I suggest not adding this line (and removing it from the Go comment).

There's an outside chance that folks could read the line as “after namespaces are created, not necessarily before create returns”, and that's correct. But I don't think it adds anything with each hook already clearly defining when it is triggered.

Spun off from this comment.

Not all hooks are run after creation.  In fact, there are currently no
postcreate hooks (prestart hooks are called "after the start operation
is called but before the user-specified program command is executed".

Fixing 28e8f68 (Hooks to linux,solaris and doc clarification,
2017-05-24, opencontainers#855), which pulled the broken line in from a Go comment
[1].

[1]: opencontainers#855 (comment)

Signed-off-by: W. Trevor King <[email protected]>
@TomSweeneyRedHat
Copy link

LGTM

@crosbymichael crosbymichael merged commit 0bdeae6 into opencontainers:master Jun 1, 2017
@wking wking deleted the incorrect-hook-timing branch June 2, 2017 04:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants