Conversation
Use an underscore after catalog names in catalogd and operator-controller temp directory prefixes. Kubernetes catalog names cannot contain underscores, so cleanup for one catalog cannot match a similarly named catalog. Add regression coverage for overlapping catalog names in both components. Signed-off-by: Todd Short <tshort@redhat.com>
✅ Deploy Preview for olmv1 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (4)
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review. 📝 WalkthroughWalkthroughTemporary catalog directories now use underscore-separated prefixes in both storage implementations. Orphan cleanup matches those prefixes, and tests check that cleanup removes target-catalog directories while preserving directories for other catalogs. ChangesCatalog temporary-directory cleanup
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to The reported prefix change and cleanup-boundary tests establish no concrete merge-blocking failure. The catalog-name constraint remains unconfirmed. Security Architecture ReviewSecurity architecture risk: ⚪ Minimal · up to The change narrows cleanup to the intended catalog and preserves existing write synchronization and publication behavior. Startup cleanup also prevents old-format staging directories from accumulating across normal upgrades or rollbacks. No material security risk was found to be introduced or worsened. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: joelanford 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 |
Summary
.{catalog}-to.{catalog}_in both creation and orphan cleanup.redhat-operatorscannot match a staging directory forredhat-operators-mirrored.emptyDir.The two affected catalog-derived prefixes are in
internal/catalogd/storage/localdir.goandinternal/operator-controller/catalogmetadata/cache/cache.go. This addresses Joe's review comment on the 4.21 backport.Validation
go test -p 2 -tags containers_image_openpgp ./internal/catalogd/storage ./internal/operator-controller/catalogmetadata/cacheSummary by CodeRabbit