SDCICD-1942: Add branch protection for hp-gitops-manifests overlay branches - #82978
Conversation
…anches Protects overlays/int, overlays/stage, overlays/prod and their -next variants, restricting pushes to the gitops-automator app. Mirrors the pattern used by gcp-hcp-infra. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
@ritmun: This pull request references SDCICD-1942 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 sub-task to target the "5.0.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. |
WalkthroughThe trigger configuration trusts ChangesGitOps automator protection
Estimated code review effort: 2 (Simple) | ~10 minutes 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 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 |
|
[REHEARSALNOTIFIER] Note: If this PR includes changes to step registry files ( |
|
@ritmun: 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. |
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
`@core-services/prow/02_config/openshift-online/hp-gitops-manifests/_prowconfig.yaml`:
- Around line 7-42: Update each branch protection entry under overlays/int,
overlays/int-next, overlays/prod, overlays/prod-next, overlays/stage, and
overlays/stage-next to set enforce_admins to true, alongside the existing
protect and restrictions configuration. Verify the resulting GitHub protection
rules apply administrator enforcement to all six branches.
🪄 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: Pro Plus
Run ID: 92fd0649-65ba-4740-b15c-cac230d0ca45
📒 Files selected for processing (2)
core-services/prow/02_config/openshift-online/hp-gitops-manifests/_pluginconfig.yamlcore-services/prow/02_config/openshift-online/hp-gitops-manifests/_prowconfig.yaml
|
/approve |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jfchevrette, ritmun 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 |
|
@ritmun: Updated the following 2 configmaps:
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-sigs/prow repository. |
Summary
overlays/int,overlays/stage,overlays/prodand their-nextvariants inopenshift-online/hp-gitops-manifests###Why
https://github.com/argoproj-labs/gitops-promoter/blob/main/docs/getting-started.md
Make sure your staging branches are not auto-deleted when PRs are merged.gitops-automatorGitHub App, mirroring the pattern used byopenshift-online/gcp-hcp-infragitops-automatoras a trusted app in the plugin config###Why
following risk-averse config used by
openshift-online/gcp-hcp-infraTest plan
make prow-configpasses without errors🤖 Generated with Claude Code
Summary by CodeRabbit
overlaysandoverlays-nextbranches inopenshift-online/hp-gitops-manifests.gitops-automatorGitHub App.gitops-automatoras a trusted application in the Prow plugin configuration.make prow-configpasses. Verification of the applied GitHub settings remains pending.