[ROSAENG-62740] Add image-puller service account for hp-sre-rosa-ci - #83076
Conversation
WalkthroughThe manifest adds an ChangesRegistry access RBAC
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
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 `@clusters/app.ci/registry-access/hp-sre-rosa-ci/admin_manifest.yaml`:
- Around line 39-51: Replace the RoleBinding’s ClusterRole reference to
pull-secret-namespace-manager with a namespace-scoped Role dedicated to the
token-creation objective. Define or reuse a Role in namespace hp-sre-rosa-ci
that grants only create on serviceaccounts/token, and keep the hp-sre-rosa-ci
group subject bound to that Role; do not retain wildcard access to secrets,
serviceaccounts, configmaps, or imagestreams.
🪄 Autofix
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 YAML (base), Central YAML (inherited)
Review profile: CHILL
Plan: Enterprise
Run ID: bf93d4bd-e890-4bb5-8d8f-42a26ac64e7a
📒 Files selected for processing (1)
clusters/app.ci/registry-access/hp-sre-rosa-ci/admin_manifest.yaml
cece69d to
b442fb8
Compare
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
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 `@clusters/app.ci/registry-access/hp-sre-rosa-ci/admin_manifest.yaml`:
- Around line 1-6: Update the image-puller ServiceAccount manifest to set
automountServiceAccountToken to false, while preserving its existing metadata
and explicit serviceaccounts/token permission behavior.
🪄 Autofix
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 YAML (base), Central YAML (inherited)
Review profile: CHILL
Plan: Enterprise
Run ID: ff1420da-ba2c-4622-b5f2-ed3e137dd9ee
📒 Files selected for processing (1)
clusters/app.ci/registry-access/hp-sre-rosa-ci/admin_manifest.yaml
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
b442fb8 to
9bc82d2
Compare
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
|
[REHEARSALNOTIFIER] Note: If this PR includes changes to step registry files ( Interacting with pj-rehearseComment: Once you are satisfied with the results of the rehearsals, comment: |
|
@bmeng: 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. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bmeng, Prucek 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 |
Adding new service account for image pull from registry.ci.openshift.org for automation purpose.
Using the existing hp-sre-rosa-ci namespace.
Also grant the permission to the existing hp-sre-rosa-ci group the permission to create the serviceaccount token
Summary by CodeRabbit
Adds an
image-pullerServiceAccount in thehp-sre-rosa-cinamespace for CI automation to pull images fromregistry.ci.openshift.org.Grants the ServiceAccount image-pull access across namespaces. Grants the
hp-sre-rosa-cigroup viewer access and permission to create tokens for the ServiceAccount.