-
Notifications
You must be signed in to change notification settings - Fork 460
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
Conversation
721d2a0
to
e02d7ce
Compare
Update: actually only one function is used from |
e02d7ce
to
f9e5282
Compare
pkg/validate/apparmor.go
Outdated
` | ||
) | ||
|
||
var _ = framework.KubeDescribe("Security Context", func() { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ack
f9e5282
to
7503c46
Compare
@Random-Liu Addressed comments, PTAL |
7503c46
to
1dcefa6
Compare
LGTM |
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 fork8s.io/apiextensions-apiserver
will reportWARNING: package k8s.io/apiextensions-apiserver is unused, consider removing it from vendor.conf
.