-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
forbid sysctls for pod sharing the respective namespaces with the host #118705
forbid sysctls for pod sharing the respective namespaces with the host #118705
Conversation
I will rebase after #118707 is merged. |
/triage accepted |
dcc7172
to
0b9947a
Compare
c98fb4c
to
79d5fdf
Compare
Thanks! /lgtm |
LGTM label has been added. Git tree hash: 2a0e335318e163b90c985829ce8c6a0996c7a57d
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: pacoxu, thockin The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@@ -6,6 +6,7 @@ go 1.20 | |||
|
|||
require ( | |||
github.com/google/go-cmp v0.5.9 | |||
github.com/stretchr/testify v1.8.3 |
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.
Rebase for this updated.
79d5fdf
to
5169ac9
Compare
Still conflict |
… ipc sysctl Signed-off-by: Paco Xu <[email protected]>
Signed-off-by: Paco Xu <[email protected]>
Signed-off-by: Paco Xu <[email protected]>
- using an option AllowNamespacedSysctlsForHostNetAndHostIPC Signed-off-by: Paco Xu <[email protected]>
5169ac9
to
36d6917
Compare
Rebased The |
/lgtm |
LGTM label has been added. Git tree hash: 587df6799fefa87173e696ea0b2663b57f107d34
|
What type of PR is this?
/kind bug
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #118702
@cheese39 meet in #72593 (comment)
Special notes for your reviewer:
If a pod with a such case is already created, the pod should be rejected by kubelet in
SysctlForbiden
status.Validation only fails when creating a pod or updating a pod pod without the forbid sysctls. If the pod already has forbid sysctls, the update will not fail.
Does this PR introduce a user-facing change?