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

Add validation tests for Apparmor #140

Merged
merged 1 commit into from
Sep 20, 2017

Conversation

feiskyer
Copy link
Member

Part of #24.

Seems apiextensions-apiserver hasn't synced recently, so k8s.io/apiextensions-apiserver/pkg/features will not be found in any packages and updating vendors for k8s.io/apiextensions-apiserver will report WARNING: package k8s.io/apiextensions-apiserver is unused, consider removing it from vendor.conf.

@k8s-ci-robot k8s-ci-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Sep 19, 2017
@feiskyer feiskyer mentioned this pull request Sep 19, 2017
3 tasks
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Sep 19, 2017
@feiskyer feiskyer changed the title [WIP] Add validation tests for Apparmor Add validation tests for Apparmor Sep 19, 2017
@feiskyer
Copy link
Member Author

Update: actually only one function is used from k8s.io/kubernetes/pkg/security/apparmor package, replaced with a local function instead.

`
)

var _ = framework.KubeDescribe("Security Context", func() {
Copy link
Contributor

Choose a reason for hiding this comment

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

So we could have different describe with the same name? Didn't know that

Copy link
Member Author

Choose a reason for hiding this comment

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

Hmm, should be Apparmor here.

// isAppArmorEnabled returns true if apparmor is enabled for the host.
// This function is forked from
// https://github.com/opencontainers/runc/blob/1a81e9ab1f138c091fe5c86d0883f87716088527/libcontainer/apparmor/apparmor.go
// to avoid the libapparmor dependency.
Copy link
Contributor

Choose a reason for hiding this comment

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

Add TODO to reuse the function after we could properly sync api?

Copy link
Member Author

Choose a reason for hiding this comment

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

ack

@Random-Liu Random-Liu self-assigned this Sep 20, 2017
@feiskyer
Copy link
Member Author

@Random-Liu Addressed comments, PTAL

@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 20, 2017
@Random-Liu Random-Liu merged commit 4b9205d into kubernetes-sigs:master Sep 20, 2017
@feiskyer feiskyer deleted the apparmor-validate branch September 21, 2017 00:22
@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.

3 participants