-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix propagation of annotations from sandbox to container #5078
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
Fix propagation of annotations from sandbox to container #5078
Conversation
|
Hi @frasertweedale. Thanks for your PR. I'm waiting for a cri-o member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
c4db2fe to
5a64d0d
Compare
|
/ok-to-test thanks @frasertweedale , since you also want it in 4.8 |
|
@haircommander: once the present PR merges, I will cherry-pick it on top of release-1.21 in a new PR and assign it to you. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/retest |
|
@saschagrunert @haircommander We need tests here to make sure we don't regress again in the future. |
5a64d0d to
0bbbe4a
Compare
I am unfamiliar with the test suite. If someone would identify a test that would make a good "template" for testing this behaviour, I'll be happy to have a go. Otherwise it might be better use of everyone's time overall for someone more familiar with cri-o test suite to contribute a test. |
Sure thing, we can follow-up on that in a separate PR 👍 |
TomSweeneyRedHat
left a comment
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.
LGTM
assuming happy tests
0bbbe4a to
92202e0
Compare
|
/retest |
|
/approve |
Codecov Report
@@ Coverage Diff @@
## master #5078 +/- ##
=======================================
Coverage 43.95% 43.96%
=======================================
Files 110 110
Lines 11440 11436 -4
=======================================
- Hits 5029 5028 -1
+ Misses 5934 5931 -3
Partials 477 477 |
|
ah @frasertweedale I thinki you need to run |
92202e0 to
82dd8c3
Compare
|
I fixed the lint nit and also added the regression test. |
|
/retest |
|
CI seems to be stalled somehow... |
|
yeah we're unfortunately dealing with a cert rotation issue right now, thanks for the patience |
|
/retest |
f5e7eaf to
3cd9a17
Compare
3cd9a17 to
17d73a2
Compare
Commit 8cf3222 introduces some extra processing of seccomp-related sandbox annotations. But it introduced a regression where most sandbox annotations are no longer propagated to the container annotations. Simplify the logic and add an `else` clause to ensure we propagate all the sandbox annotations to the container's OCI configuration. Fixes: cri-o#5077 Signed-off-by: Fraser Tweedale <[email protected]>
17d73a2 to
a458874
Compare
Signed-off-by: Fraser Tweedale <[email protected]>
a458874 to
34ddc81
Compare
|
/retest |
|
@frasertweedale: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
saschagrunert
left a comment
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.
/lgtm
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: frasertweedale, haircommander, saschagrunert The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@haircommander: new pull request created: #5124 DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Commit 8cf3222 introduces some
extra processing of seccomp-related sandbox annotations. But it
introduced a regression where most sandbox annotations are no longer
propagated to the container annotations. Add an
elseclause toensure we propagate all the sandbox annotations to the container's
OCI configuration.
What type of PR is this?
/kind bug
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes: #5077
Does this PR introduce a user-facing change?