-
Notifications
You must be signed in to change notification settings - Fork 2k
OCPCLOUD-2824: rebasebot: setup periodic jobs for rebasing cluster-api providers #57749
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
openshift-merge-bot
merged 2 commits into
openshift:master
from
RadekManak:capz-rebases
Apr 23, 2025
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,7 +39,7 @@ tests: | |
| commands: | | ||
| rebasebot --source https://github.com/kubernetes/cloud-provider-aws:master \ | ||
| --dest openshift/cloud-provider-aws:main \ | ||
| --rebase openshift-cloud-team/cloud-provider-aws:rebase-bot-master \ | ||
| --rebase openshift-cloud-team/cloud-provider-aws:rebase-bot-main \ | ||
| --update-go-modules \ | ||
| --slack-webhook /secrets/rebasebot/slack-webhook \ | ||
| --github-app-key /secrets/rebasebot/cloud-team-openshift-bot-key \ | ||
|
|
@@ -59,6 +59,186 @@ tests: | |
| requests: | ||
| cpu: 100m | ||
| memory: 200Mi | ||
| - as: cluster-api-provider-azure | ||
| cron: 0 12 * * Mon,Thu | ||
| steps: | ||
| test: | ||
| - as: cluster-api-provider-azure | ||
| commands: | | ||
| rebasebot --source-repo kubernetes-sigs/cluster-api-provider-azure \ | ||
| --source-ref-hook _BUILTIN_/source-ref-hooks/latest-stable-release.sh \ | ||
| --dest openshift/cluster-api-provider-azure:master \ | ||
| --rebase openshift-cloud-team/cluster-api-provider-azure:rebase-bot-master \ | ||
| --update-go-modules \ | ||
| --post-rebase-hook git:https://github.com/openshift/cluster-capi-operator/main:hack/rebasebot-hook-scripts/update-ocp-manifests-gen.sh git:https://github.com/openshift/cluster-capi-operator/main:hack/rebasebot-hook-scripts/generate-ocp-manifests.sh \ | ||
| --slack-webhook /secrets/rebasebot/slack-webhook \ | ||
| --github-app-key /secrets/rebasebot/cloud-team-openshift-bot-key \ | ||
| --github-cloner-key /secrets/rebasebot/cloud-team-bot-key \ | ||
| --git-username cloud-team-rebase-bot \ | ||
| --git-email [email protected] \ | ||
| --bot-emails [email protected] [email protected] [email protected] \ | ||
| --tag-policy=strict | ||
| credentials: | ||
| - mount_path: /secrets/rebasebot | ||
| name: rebase-bot-creds | ||
| namespace: test-credentials | ||
| from: rebasebot | ||
| resources: | ||
| limits: | ||
| memory: 4Gi | ||
| requests: | ||
| cpu: 100m | ||
| memory: 200Mi | ||
| - as: cluster-api-provider-aws | ||
| cron: 0 12 * * Mon,Thu | ||
| steps: | ||
| test: | ||
| - as: cluster-api-provider-aws | ||
| commands: | | ||
| rebasebot --source-repo kubernetes-sigs/cluster-api-provider-aws \ | ||
| --source-ref-hook _BUILTIN_/source-ref-hooks/latest-stable-release.sh \ | ||
| --dest openshift/cluster-api-provider-aws:master \ | ||
| --rebase openshift-cloud-team/cluster-api-provider-aws:rebase-bot-master \ | ||
| --update-go-modules \ | ||
| --post-rebase-hook git:https://github.com/openshift/cluster-capi-operator/main:hack/rebasebot-hook-scripts/update-ocp-manifests-gen.sh git:https://github.com/openshift/cluster-capi-operator/main:hack/rebasebot-hook-scripts/generate-ocp-manifests.sh \ | ||
| --slack-webhook /secrets/rebasebot/slack-webhook \ | ||
| --github-app-key /secrets/rebasebot/cloud-team-openshift-bot-key \ | ||
| --github-cloner-key /secrets/rebasebot/cloud-team-bot-key \ | ||
| --git-username cloud-team-rebase-bot \ | ||
| --git-email [email protected] \ | ||
| --bot-emails [email protected] [email protected] [email protected] \ | ||
| --tag-policy=strict | ||
| credentials: | ||
| - mount_path: /secrets/rebasebot | ||
| name: rebase-bot-creds | ||
| namespace: test-credentials | ||
| from: rebasebot | ||
| resources: | ||
| limits: | ||
| memory: 4Gi | ||
| requests: | ||
| cpu: 100m | ||
| memory: 200Mi | ||
| - as: cluster-api-provider-gcp | ||
| cron: 0 12 * * Mon,Thu | ||
| steps: | ||
| test: | ||
| - as: cluster-api-provider-gcp | ||
| commands: | | ||
| rebasebot --source kubernetes-sigs/cluster-api-provider-gcp \ | ||
| --source-ref-hook _BUILTIN_/source-ref-hooks/latest-stable-release.sh \ | ||
| --dest openshift/cluster-api-provider-gcp:master \ | ||
| --rebase openshift-cloud-team/cluster-api-provider-gcp:rebase-bot-master \ | ||
| --update-go-modules \ | ||
| --post-rebase-hook git:https://github.com/openshift/cluster-capi-operator/main:hack/rebasebot-hook-scripts/update-ocp-manifests-gen.sh git:https://github.com/openshift/cluster-capi-operator/main:hack/rebasebot-hook-scripts/generate-ocp-manifests.sh \ | ||
| --slack-webhook /secrets/rebasebot/slack-webhook \ | ||
| --github-app-key /secrets/rebasebot/cloud-team-openshift-bot-key \ | ||
| --github-cloner-key /secrets/rebasebot/cloud-team-bot-key \ | ||
| --git-username cloud-team-rebase-bot \ | ||
| --git-email [email protected] \ | ||
| --bot-emails [email protected] [email protected] [email protected] \ | ||
| --tag-policy=strict | ||
| credentials: | ||
| - mount_path: /secrets/rebasebot | ||
| name: rebase-bot-creds | ||
| namespace: test-credentials | ||
| from: rebasebot | ||
| resources: | ||
| limits: | ||
| memory: 4Gi | ||
| requests: | ||
| cpu: 100m | ||
| memory: 200Mi | ||
| - as: cluster-api-provider-vsphere | ||
| cron: 0 12 * * Mon,Thu | ||
| steps: | ||
| test: | ||
| - as: cluster-api-provider-vsphere | ||
| commands: | | ||
| rebasebot --source-repo kubernetes-sigs/cluster-api-provider-vsphere \ | ||
| --source-ref-hook _BUILTIN_/source-ref-hooks/latest-stable-release.sh \ | ||
| --dest openshift/cluster-api-provider-vsphere:master \ | ||
| --rebase openshift-cloud-team/cluster-api-provider-vsphere:rebase-bot-master \ | ||
| --update-go-modules \ | ||
| --post-rebase-hook git:https://github.com/openshift/cluster-capi-operator/main:hack/rebasebot-hook-scripts/update-ocp-manifests-gen.sh git:https://github.com/openshift/cluster-capi-operator/main:hack/rebasebot-hook-scripts/generate-ocp-manifests.sh \ | ||
| --slack-webhook /secrets/rebasebot/slack-webhook \ | ||
| --github-app-key /secrets/rebasebot/cloud-team-openshift-bot-key \ | ||
| --github-cloner-key /secrets/rebasebot/cloud-team-bot-key \ | ||
| --git-username cloud-team-rebase-bot \ | ||
| --git-email [email protected] \ | ||
| --bot-emails [email protected] [email protected] [email protected] \ | ||
| --tag-policy=strict | ||
| credentials: | ||
| - mount_path: /secrets/rebasebot | ||
| name: rebase-bot-creds | ||
| namespace: test-credentials | ||
| from: rebasebot | ||
| resources: | ||
| limits: | ||
| memory: 4Gi | ||
| requests: | ||
| cpu: 100m | ||
| memory: 200Mi | ||
| - as: cluster-api-provider-ibmcloud | ||
| cron: 0 12 * * Mon,Thu | ||
| steps: | ||
| test: | ||
| - as: cluster-api-provider-ibmcloud | ||
| commands: | | ||
| rebasebot --source-repo kubernetes-sigs/cluster-api-provider-ibmcloud \ | ||
| --source-ref-hook _BUILTIN_/source-ref-hooks/latest-stable-release.sh \ | ||
| --dest openshift/cluster-api-provider-ibmcloud:main \ | ||
| --rebase openshift-cloud-team/cluster-api-provider-ibmcloud:rebase-bot-main \ | ||
| --update-go-modules \ | ||
| --post-rebase-hook git:https://github.com/openshift/cluster-capi-operator/main:hack/rebasebot-hook-scripts/update-ocp-manifests-gen.sh git:https://github.com/openshift/cluster-capi-operator/main:hack/rebasebot-hook-scripts/generate-ocp-manifests.sh \ | ||
| --slack-webhook /secrets/rebasebot/slack-webhook \ | ||
| --github-app-key /secrets/rebasebot/cloud-team-openshift-bot-key \ | ||
| --github-cloner-key /secrets/rebasebot/cloud-team-bot-key \ | ||
| --git-username cloud-team-rebase-bot \ | ||
| --git-email [email protected] \ | ||
| --bot-emails [email protected] [email protected] [email protected] \ | ||
| --tag-policy=strict | ||
| credentials: | ||
| - mount_path: /secrets/rebasebot | ||
| name: rebase-bot-creds | ||
| namespace: test-credentials | ||
| from: rebasebot | ||
| resources: | ||
| limits: | ||
| memory: 4Gi | ||
| requests: | ||
| cpu: 100m | ||
| memory: 200Mi | ||
| - as: cluster-api | ||
| cron: 0 12 * * Mon,Thu | ||
| steps: | ||
| test: | ||
| - as: cluster-api | ||
| commands: | | ||
| rebasebot --source-repo kubernetes-sigs/cluster-api \ | ||
| --source-ref-hook _BUILTIN_/source-ref-hooks/latest-stable-release.sh \ | ||
| --dest openshift/cluster-api:master \ | ||
| --rebase openshift-cloud-team/cluster-api:rebase-bot-master \ | ||
| --update-go-modules \ | ||
| --post-rebase-hook git:https://github.com/openshift/cluster-capi-operator/main:hack/rebasebot-hook-scripts/update-ocp-manifests-gen.sh git:https://github.com/openshift/cluster-capi-operator/main:hack/rebasebot-hook-scripts/generate-ocp-manifests.sh \ | ||
| --slack-webhook /secrets/rebasebot/slack-webhook \ | ||
| --github-app-key /secrets/rebasebot/cloud-team-openshift-bot-key \ | ||
| --github-cloner-key /secrets/rebasebot/cloud-team-bot-key \ | ||
| --git-username cloud-team-rebase-bot \ | ||
| --git-email [email protected] \ | ||
| --bot-emails [email protected] [email protected] [email protected] \ | ||
| --tag-policy=strict | ||
| credentials: | ||
| - mount_path: /secrets/rebasebot | ||
| name: rebase-bot-creds | ||
| namespace: test-credentials | ||
| from: rebasebot | ||
| resources: | ||
| limits: | ||
| memory: 4Gi | ||
| requests: | ||
| cpu: 100m | ||
| memory: 200Mi | ||
| - as: cloud-provider-ibm | ||
| cron: 10 12 * * Mon,Thu | ||
| steps: | ||
|
|
@@ -68,7 +248,7 @@ tests: | |
| export BRANCH_NAME=$(curl --silent --header "X-GitHub-Api-Version:2022-11-28" "https://api.github.com/repos/IBM-Cloud/cloud-provider-ibm/branches" | grep -E '"name": "release-[0-9]+\.[0-9]+"' | awk -F'"' '{print $4}' | sort -V | tail -n 1) | ||
| rebasebot --source https://github.com/IBM-Cloud/cloud-provider-ibm:${BRANCH_NAME} \ | ||
| --dest openshift/cloud-provider-ibm:main \ | ||
| --rebase openshift-cloud-team/cloud-provider-ibm:rebase-bot-master \ | ||
| --rebase openshift-cloud-team/cloud-provider-ibm:rebase-bot-main \ | ||
| --update-go-modules \ | ||
| --slack-webhook /secrets/rebasebot/slack-webhook \ | ||
| --github-app-key /secrets/rebasebot/cloud-team-openshift-bot-key \ | ||
|
|
@@ -153,7 +333,7 @@ tests: | |
| commands: | | ||
| rebasebot --source https://github.com/kubernetes-sigs/cloud-provider-azure:master \ | ||
| --dest openshift/cloud-provider-azure:main \ | ||
| --rebase openshift-cloud-team/cloud-provider-azure:rebase-bot-master \ | ||
| --rebase openshift-cloud-team/cloud-provider-azure:rebase-bot-main \ | ||
| --update-go-modules \ | ||
| --slack-webhook /secrets/rebasebot/slack-webhook \ | ||
| --github-app-key /secrets/rebasebot/cloud-team-openshift-bot-key \ | ||
|
|
@@ -181,7 +361,7 @@ tests: | |
| commands: | | ||
| rebasebot --source https://github.com/kubernetes/cloud-provider-gcp:master \ | ||
| --dest openshift/cloud-provider-gcp:main \ | ||
| --rebase openshift-cloud-team/cloud-provider-gcp:rebase-bot-master \ | ||
| --rebase openshift-cloud-team/cloud-provider-gcp:rebase-bot-main \ | ||
| --update-go-modules \ | ||
| --slack-webhook /secrets/rebasebot/slack-webhook \ | ||
| --github-app-key /secrets/rebasebot/cloud-team-openshift-bot-key \ | ||
|
|
@@ -209,7 +389,7 @@ tests: | |
| commands: | | ||
| rebasebot --source https://github.com/kubernetes/cloud-provider-vsphere:master \ | ||
| --dest openshift/cloud-provider-vsphere:main \ | ||
| --rebase openshift-cloud-team/cloud-provider-vsphere:rebase-bot-master \ | ||
| --rebase openshift-cloud-team/cloud-provider-vsphere:rebase-bot-main \ | ||
| --update-go-modules \ | ||
| --slack-webhook /secrets/rebasebot/slack-webhook \ | ||
| --github-app-key /secrets/rebasebot/cloud-team-openshift-bot-key \ | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we could change the
rebase-bot-masterbranch name here to something different, which encompasses the version computed. So we can have multiple PRs based on different versions, e.g. for syncing older release branches with newer upstream releases.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am thinking we extend this to be
rebase-bot-<target_branch>. We could make this the default when the rebase branch is not specified. For now, I have updated to rebase-bot-main where the dest branch is main.