ART-21088: Add art-publish RBAC permissions for origin-arm64 namespace - #83649
Conversation
The art-publish service account needs permissions to update imagestreams in the origin-arm64 namespace, matching the existing permissions already configured for the origin namespace. This adds three RBAC resources: a RoleBinding to system:image-builder, the art-publish-modify-release Role, and its corresponding RoleBinding. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
[REHEARSALNOTIFIER] Note: If this PR includes changes to step registry files ( |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review. WalkthroughThe change grants the ChangesARM64 art-publish RBAC
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to This localized change adds the required arm64 publishing permissions and generated configuration; no actionable merge-blocking risk remains beyond normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 14 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (14 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 |
|
@redhat-chai-bot: all tests passed! 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. |
|
/retitle ART-21088: Add art-publish RBAC permissions for origin-arm64 namespace |
|
@redhat-chai-bot: This pull request references ART-21088 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "5.1.0" version, but no target version was set. 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 openshift-eng/jira-lifecycle-plugin repository. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bradmwilliams, redhat-chai-bot 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
Grant the
system:serviceaccount:ocp:art-publishservice account permissions to update imagestreams in theorigin-arm64namespace, mirroring the existing permissions in theoriginnamespace.Problem
The OKD pipeline's new arm64 imagestream support (openshift-eng/art-tools#3305) needs to tag images into
origin-arm64/scos-5.0-art-arm64, but theart-publishSA only has RBAC in theoriginnamespace. Attempts to tag arm64 images fail with:Changes
Generator (
hack/generators/release-controllers/content/art_publish_permissions.py): Added RBAC block fororigin-arm64following the same pattern as the existingoriginnamespace permissions:art-publishRoleBinding grantingsystem:image-builderClusterRoleart-publish-modify-releaseRole with permissions on imagestreams, imagestreamimports, and imagestreamtagsart-publish-modify-releaseRoleBinding linking the SA to the roleGenerated output (
clusters/app.ci/release-controller/admin_deploy-ocp-publish-art.yaml): Regenerated viamake release-controllersAI-generated. Review for accuracy.
@locriandev requested via Chai Bot
Summary by CodeRabbit
This PR grants the
system:serviceaccount:ocp:art-publishservice account permission to update related image stream resources in theorigin-arm64namespace. This enables the OKD arm64 release pipeline to publish artifacts.The generator now creates the required
RoleBinding,Role, andRoleBindingresources. The release-controller deployment manifest includes the regenerated RBAC configuration.