-
Notifications
You must be signed in to change notification settings - Fork 526
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
SCC: add {AllowedUnsafe,Forbidden}Sysctls #60
Conversation
da655fb
to
b1603dc
Compare
Please add a link in the commit and PR description to the upstream PR if you can (helps reviewing as well as gives reference). Other than that.. |
// AllowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. | ||
// Each entry is either a plain sysctl name or ends in "*" in which case it is considered | ||
// as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. | ||
// Kubelet has to whitelist all allowed unsafe sysctls explicitly to avoid rejection. |
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.
@openshift/api-review Should we modify the privileged
SCC to allow all unsafe sysctls by default (like we did for allowedCapabilities: openshift/origin#12741)? In this case, we won't have a confusion when a cluster admin didn't have permissions for using usafe sysctls.
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.
that's what I would expect
@stlaz Thank you! /lgtm |
@stlaz 😉 |
@php-coder oh you monster! |
/hold At this point the rebase is 6 tests from success and I think we've got all of them addressed (running CI now). When these are added into origin, you need to revert |
@deads2k is it ok to get this one in now ? |
let's resolve the current 3 API changes not synced up in origin first (c.f. openshift/origin#19624 (comment)) |
1.11.0 rebase is landed, origin is synced up is the origin PR ready to go once this is merged? /hold cancel |
Hopefully it should be. We'll only need a openshift/client-go update prior to that, right? |
To ensure the origin PR is ready to merge as soon as this is merged:
We will then merge this PR, and you will do the following:
|
Many thanks for clarifying the proper way of doing this 🙂 I'll try to rebase the PRs now plus do the changes, although if something fails, I'll probably only be able to get back to them at the beginning of the next week. |
@liggitt When I follow your advice, a number (I'd say an unreasonable number) of dependencies get pulled at step 2, one of which corrupts the build, as seen in the origin PR. Am I doing something wrong? |
I checked out your origin branch, and ran
it included far fewer dependency changes than were in your PR... I updated the bump(*) commit and pushed the results to https://github.com/liggitt/origin/commits/stlaz-sysctl_promotion if you want to take a look what version of glide are you running? |
I tried doing the same (took a while), but the number of packages still seems to be the same. I'm running that in a clean repo ( |
After a rebase on the current origin master, I am even getting errors when running
That's both on Fedora with the upstream glide, and on Arch with its distribution specific glide ( I have both I am pretty sure I must have forgotten something very crucial, I have no idea what that could be, though. |
That package doesn't exist. Try rebasing your pull on origin master and removing package refs that aren't present. |
git clean -f -x -d -f |
Thanks. The actual workaround that helped me resolve my original issue with the great number of dependencies was to Anyway, I fixed a wrong package reference in |
@liggitt I believe the requirements from your post #60 (comment) were now met by getting the LGTM label at the origin PR. |
yes, thanks /lgtm |
This is a part of syncing with upstream which moved from {AllowedUnsafe,Forbidden}Sysctls annotations to their respective fields.
PTAL @php-coder @ingvagabund
CC @simo5
edit: openshift/origin#20151