feat(#320): add maintenance automation script - #321
feat(#320): add maintenance automation script#321fullsend-ai-coder[bot] wants to merge 1 commit into
Conversation
Port maintenance-update.py from managed-upgrade-operator (SREP-915) and adapt for ocm-agent-operator. The script automates per-release maintenance tasks: - Updates version-pinned deps (openshift/api) to a release branch when --release is specified - Updates controller-runtime to the matching version - Updates latest-tracking deps (osde2e-common) - Runs go mod tidy and container-make validation - Updates boilerplate and re-validates - Interactively stages and commits changes Default dependency lists are tailored to this operator. The controller-runtime version map covers 4.17-4.20. Also updates docs/development.md with usage instructions for the maintenance workflow. Note: pre-commit could not run in sandbox (network restriction). Post-script runs authoritative pre-commit. Closes #320
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: fullsend-ai-coder[bot] 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 |
|
Hi @fullsend-ai-coder[bot]. Thanks for your PR. I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
What type of PR is this?
feature
What this PR does / why we need it?
Adds a maintenance automation script (
hack/maintenance-update.py) to streamline per-OCP-release maintenance for ocm-agent-operator. The script is ported from managed-upgrade-operator (SREP-915) and adapted for this operator's dependency structure.The script automates:
github.com/openshift/api) to a release branchgithub.com/openshift/osde2e-common)go mod tidyandboilerplate/_lib/container-makevalidationmake boilerplate-updateDefault dependency lists are tailored to ocm-agent-operator. The controller-runtime version map covers OCP releases 4.17 through 4.20.
Documentation in
docs/development.mdis updated with usage instructions for the maintenance workflow.Which Jira/Github issue(s) this PR fixes?
Fixes #320
Jira: ROSAENG-1452
Special notes for your reviewer:
Pre-checks (if applicable):
make generatecommand locally to validate code changesCloses #320
Post-script verification
agent/320-maintenance-automation)7f9e6417953d949242cdfc37c83dc0d25f5b5f7a..HEAD)