gcp-hcp-infra: configure Prow for gitops-promoter promotion branches#80775
Conversation
- Protect environment/global-{integration,stage} branches (require PRs,
no direct push) without requiring atlantis status checks
- Trust gcp-hcp-gitops-promoter GitHub App so promotion PRs skip
needs-ok-to-test
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
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: Enterprise Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughTwo YAML config files for the Changesgcp-hcp-infra Prow Config Updates
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Run determinize-prow-config to fix branch-protection entry ordering (environment/* branches before main, alphabetically). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
[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: |
|
/retest |
|
@patjlm: 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. |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: apahim, patjlm 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 |
|
@patjlm: 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
environment/global-integrationandenvironment/global-stagebranches without requiring atlantis status checksgcp-hcp-gitops-promoterGitHub App so promotion PRs skipneeds-ok-to-testContext
We're deploying gitops-promoter for progressive environment promotions (integration → stage) on
gcp-hcp-infra. The promoter bot creates PRs targetingenvironment/global-*active branches. Without this change:needs-ok-to-test, requiring manual interventionRelated PRs on gcp-hcp-infra:
Jira: GCP-837
🤖 Generated with Claude Code
Summary by CodeRabbit
This PR configures Prow to support automated promotion workflows for the
gcp-hcp-infrarepository using thegcp-hcp-gitops-promoterGitHub App.Changes made:
Trusted App Configuration (
_pluginconfig.yaml): Addedgcp-hcp-gitops-promoterto thetrusted_appslist under Prow's trigger configuration. This allows promotion PRs created by the app to skip theneeds-ok-to-testrequirement, enabling automated testing without manual approval delays.Branch Protection Rules (
_prowconfig.yaml): Added protection to theenvironment/global-integrationandenvironment/global-stagebranches, requiring pull requests for all changes while explicitly excluding atlantis status checks (since these checks don't apply to promotion PRs created by the automation).These changes enable the gitops-promoter bot to automatically create promotion PRs as part of a progressive deployment workflow, moving validated changes from the integration environment to staging without requiring manual intervention in the CI/CD process.