Migrate CRI-O annotations to v2 format - #449
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
WalkthroughBuild pod setup now uses updated CRI-O annotation keys for FUSE devices and automatic user namespaces, with table-driven tests updated across privilege scenarios. ChangesCRI-O annotation updates
Estimated code review effort: 1 (Trivial) | ~5 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@pkg/build/controller/strategy/util_test.go`:
- Around line 814-851: The BUILD_PRIVILEGED test cases in the relevant table
must also assert that deprecated CRI-O annotations io.kubernetes.cri-o.Devices
and io.kubernetes.cri-o.userns-mode are absent. Add both keys to each applicable
noAnnotations expectation, or add a shared postcondition after the annotation
assertions, while preserving the existing checks for the current annotation
keys.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 6dfc6dad-dbc8-42b9-af96-849075b27b3a
📒 Files selected for processing (2)
pkg/build/controller/strategy/util.gopkg/build/controller/strategy/util_test.go
|
/retest |
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
469fdd7 to
f6447dd
Compare
|
/retest |
|
@saschagrunert: 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-sigs/prow repository. I understand the commands that are listed here. |
CRI-O migrated its annotations from v1 (
io.kubernetes.cri-o.*) to v2 (*.crio.io) format. The old format is deprecated. This updates the builder pod annotations accordingly:io.kubernetes.cri-o.Devices->devices.crio.ioio.kubernetes.cri-o.userns-mode->userns-mode.crio.ioTracking: cri-o/cri-o#10194
Summary by CodeRabbit
io.openshift.builderannotations.