Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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 \
Copy link
Member

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-master branch 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.

Copy link
Contributor Author

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.

--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:
Expand All @@ -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 \
Expand Down Expand Up @@ -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 \
Expand Down Expand Up @@ -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 \
Expand Down Expand Up @@ -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 \
Expand Down
Loading