Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config: Explicitly put hooks in the runtime namespace #415

Merged
merged 1 commit into from
May 4, 2016

Conversation

wking
Copy link
Contributor

@wking wking commented Apr 30, 2016

The language from 15dee2e (runtime: Add prestart/poststop hooks,
2015-08-03, #34) landed well before we had glossary entries for the
runtime and container namespaces (from 5dad125, config-linux: Specify
host mount namespace for namespace paths, 2015-12-18, #275). Now that
we do have language to cover that concept, it's better to explicitly
say that hooks run in the runtime namespace instead of leaving it to
the reader to extrapolate from the filesystem requirement.

With the new namespace wording, the "host's filesystem" wording is
somewhat redundant. I've left it in though, because I think it helps
to have a more gradual transition from hook paths to namespaces.

The most recent instance of reader uncertainty is here.

The language from 15dee2e (runtime: Add prestart/poststop hooks,
2015-08-03, opencontainers#34) landed well before we had glossary entries for the
runtime and container namespaces (from 5dad125, config-linux: Specify
host mount namespace for namespace paths, 2015-12-18, opencontainers#275).  Now that
we do have language to cover that concept, it's better to explicitly
say that hooks run in the runtime namespace instead of leaving it to
the reader to extrapolate from the filesystem requirement.

With the new namespace wording, the "host's filesystem" wording is
somewhat redundant.  I've left it in though, because I think it helps
to have a more gradual transition from hook paths to namespaces.

Signed-off-by: W. Trevor King <wking@tremily.us>
@wking
Copy link
Contributor Author

wking commented May 1, 2016

My last attempt at this sort of wording was in bfe1aba (runtime-config: Require hooks to execute in the host environment, 2015-09-30, #207). Pushback on that attempt revolved around terminology for the runtime/host namespace. Since then, we've landed “runtime namespace” in the glossary via #275, so I think this PR will be uncontroversial ;).

@mrunalp
Copy link
Contributor

mrunalp commented May 2, 2016

LGTM

2 similar comments
@philips
Copy link
Contributor

philips commented May 4, 2016

LGTM

@crosbymichael
Copy link
Member

LGTM

@crosbymichael crosbymichael merged commit 0712644 into opencontainers:master May 4, 2016
@wking wking deleted the explicit-hook-namespace branch May 13, 2016 17:32
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.

4 participants