ACM-29247: infrastructure operator set up renovate configuration to automatically create hive api synchronization p rs#1511
Conversation
shay23bra
commented
Feb 15, 2026
- Enable gomod manager for Go dependency updates
- Add Hive API package rule for github.com/openshift/hive/apis
- Configure automatic PR creation with hive-api and api-sync labels
- Group updates under 'Hive API Synchronization'
- Preserve existing Docker image and Konflux pipeline configuration
|
@shay23bra: This pull request references ACM-29247 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 "4.22.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. |
|
Important Review skippedAuto reviews are limited based on label configuration. 🚫 Review skipped — only excluded labels are configured. (1)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@renovate.json`:
- Around line 11-15: The Renovate config currently enables "gomod" in the
enabledManagers array which will create PRs for every Go dependency; restrict
gomod to only Hive API by adding packageRules under "packageRules" that target
manager:"gomod" and matchPackageNames:"github.com/openshift/hive/apis"
(enable/update for that package) and add a second packageRule for
manager:"gomod" that disables updates for all other Go packages (e.g.,
matchPackageNames:"*" with enabled:false or matchPackagePatterns to exclude
hive), or remove "gomod" from enabledManagers if you don't want any gomod PRs;
update the existing Hive API package rule (the one currently configuring
grouping/labels) to be explicit about manager:"gomod" and the matchPackageNames
value to ensure only that package is handled.
| "enabledManagers": [ | ||
| "custom.regex", | ||
| "tekton" | ||
| "tekton", | ||
| "gomod" | ||
| ], |
There was a problem hiding this comment.
Enabling gomod will create PRs for all Go dependencies, not just Hive API.
Adding gomod to enabledManagers will cause Renovate to propose updates for every dependency in your go.mod file, not just github.com/openshift/hive/apis. The package rule on lines 135-148 only configures grouping and labels for Hive API — it doesn't disable updates for other packages.
If you only want Hive API synchronization PRs, consider adding a rule to disable all other gomod updates:
Proposed fix to limit gomod updates to Hive API only
},
{
"matchManagers": [
"gomod"
],
"matchPackageNames": [
"github.com/openshift/hive/apis"
],
"groupName": "Hive API Synchronization",
"addLabels": [
"hive-api",
"api-sync"
],
"enabled": true
+ },
+ {
+ "matchManagers": [
+ "gomod"
+ ],
+ "excludePackageNames": [
+ "github.com/openshift/hive/apis"
+ ],
+ "enabled": false
}
]
}📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| "enabledManagers": [ | |
| "custom.regex", | |
| "tekton" | |
| "tekton", | |
| "gomod" | |
| ], | |
| "packageRules": [ | |
| { | |
| "matchManagers": [ | |
| "gomod" | |
| ], | |
| "matchPackageNames": [ | |
| "github.com/openshift/hive/apis" | |
| ], | |
| "groupName": "Hive API Synchronization", | |
| "addLabels": [ | |
| "hive-api", | |
| "api-sync" | |
| ], | |
| "enabled": true | |
| }, | |
| { | |
| "matchManagers": [ | |
| "gomod" | |
| ], | |
| "excludePackageNames": [ | |
| "github.com/openshift/hive/apis" | |
| ], | |
| "enabled": false | |
| } | |
| ] |
🤖 Prompt for AI Agents
In `@renovate.json` around lines 11 - 15, The Renovate config currently enables
"gomod" in the enabledManagers array which will create PRs for every Go
dependency; restrict gomod to only Hive API by adding packageRules under
"packageRules" that target manager:"gomod" and
matchPackageNames:"github.com/openshift/hive/apis" (enable/update for that
package) and add a second packageRule for manager:"gomod" that disables updates
for all other Go packages (e.g., matchPackageNames:"*" with enabled:false or
matchPackagePatterns to exclude hive), or remove "gomod" from enabledManagers if
you don't want any gomod PRs; update the existing Hive API package rule (the one
currently configuring grouping/labels) to be explicit about manager:"gomod" and
the matchPackageNames value to ensure only that package is handled.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1511 +/- ##
=======================================
Coverage 48.28% 48.28%
=======================================
Files 20 20
Lines 4316 4316
=======================================
Hits 2084 2084
Misses 2011 2011
Partials 221 221 🚀 New features to boost your workflow:
|
|
@shay23bra: 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 NOT APPROVED This pull-request has been approved by: ngraham20, shay23bra The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |