Skip to content

Revert "Drop duplicate mounts of CNI directories." #60

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

Merged
merged 1 commit into from
Feb 12, 2018

Conversation

ijc
Copy link
Contributor

@ijc ijc commented Feb 12, 2018

This reverts commit 81e8953.

These mounts are apparently not as redundant as they first seemed. The
runtimes.mounts paths are all wrt the host mount namespace, so these are in
fact binding the (writeable) /var/lib/cni paths over the (readonly) canonical
host CNI paths. The binds will then bind those host paths into the kubelet
container.

Fixes #59, I also saw this during development of #58.

Signed-off-by: Ian Campbell ijc@docker.com

This reverts commit 81e8953.

These mounts are apparently not as redundant as they first seemed. The
`runtimes.mounts` paths are all wrt the host mount namespace, so these are in
fact binding the (writeable) `/var/lib/cni` paths over the (readonly) canonical
host CNI paths. The `binds` will then bind those host paths into the kubelet
container.

Fixes linuxkit#59, I also saw this during development of linuxkit#58.

Signed-off-by: Ian Campbell <ijc@docker.com>
@ijc
Copy link
Contributor Author

ijc commented Feb 12, 2018

The bug was introduced by me in #57.

@ijc ijc merged commit 33d5e1d into linuxkit:master Feb 12, 2018
@ijc ijc deleted the put-back-mounts branch February 12, 2018 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants