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

Support mount propagation validation #142

Merged
merged 1 commit into from
Sep 21, 2017

Conversation

miaoyq
Copy link
Contributor

@miaoyq miaoyq commented Sep 20, 2017

Part of #131.

/cc @feiskyer @Random-Liu

Signed-off-by: Yanqiang Miao miao.yanqiang@zte.com.cn

@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Sep 20, 2017
@Random-Liu
Copy link
Contributor

@miaoyq Does cri-containerd pass this?

@miaoyq
Copy link
Contributor Author

miaoyq commented Sep 20, 2017

@Random-Liu Yes, have passed.

@Random-Liu
Copy link
Contributor

@miaoyq Cool! Will review it now.

rc.RemovePodSandbox(podID)
})

It("mount with 'rprivate' should not support propagation", func() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also check mount inside container could not be propagated to host.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do.

Expect(len(fileInfo)).NotTo(BeZero(), "len(fileInfo) should not be zero.")
})

It("mount with 'rslave' should support propagation from host to container", func() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also check mount inside container could not be propagated to host.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do.

Expect(len(output)).NotTo(BeZero(), "len(output) should not be zero.")
})

It("mount without propagation option should not support propagation", func() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not defined in CRI, runtime may return an error for non-supported mount propagation option, so let's not test this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, will remove this part.

Signed-off-by: Yanqiang Miao <miao.yanqiang@zte.com.cn>
@miaoyq
Copy link
Contributor Author

miaoyq commented Sep 21, 2017

@Random-Liu Updated, cri-containerd have passed also.

@Random-Liu
Copy link
Contributor

LGTM

@Random-Liu Random-Liu added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 21, 2017
@feiskyer
Copy link
Member

LGTM

@feiskyer feiskyer merged commit 8962063 into kubernetes-sigs:master Sep 21, 2017
@Random-Liu Random-Liu mentioned this pull request Sep 21, 2017
2 tasks
@feiskyer feiskyer mentioned this pull request Sep 22, 2017
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants