-
Notifications
You must be signed in to change notification settings - Fork 40.3k
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 baseline check for procMount type #103340
Add baseline check for procMount type #103340
Conversation
Skipping CI for Draft Pull Request. |
/sig auth |
/priority important-soon |
Command used to run integration tests:
The tests fail for the
After adding logs inside the
I noticed that even if the spec that is logged out as part of the error message shows the container |
c960a9b
to
5099312
Compare
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.
Looks good overall, thanks for the PR. Just a few tweaks. Go ahead and squash updates to a single commit.
staging/src/k8s.io/pod-security-admission/policy/check_procMount.go
Outdated
Show resolved
Hide resolved
staging/src/k8s.io/pod-security-admission/policy/check_procMount.go
Outdated
Show resolved
Hide resolved
staging/src/k8s.io/pod-security-admission/test/fixtures_procMount.go
Outdated
Show resolved
Hide resolved
staging/src/k8s.io/pod-security-admission/test/fixtures_procMount.go
Outdated
Show resolved
Hide resolved
5099312
to
5db3277
Compare
Thank you @liggitt! I've made the changes :) |
/hold |
staging/src/k8s.io/pod-security-admission/test/fixtures_procMount.go
Outdated
Show resolved
Hide resolved
5db3277
to
c7bb761
Compare
- Will not allow if a container (init or not) sets the proc mount type to anything other than `Default` - Include fixture for proc mount baseline generation and the consequent genreated test data Signed-off-by: Madhav Jivrajani <[email protected]>
c7bb761
to
f0ffba7
Compare
/hold cancel |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: liggitt, MadhavJivrajani 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 |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Default
Which issue(s) this PR fixes:
Fixes #103201
Special notes for your reviewer:
The integration tests currently are not passing -- I'm having some difficulty understanding why, would greatly appreciate pointers if any :)
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:
/assign @tallclair @liggitt