-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
155 additions
and
38 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1,29 +1,41 @@ | ||
# Opens a PR in the opendatahub-operator repo when crds are updated in the dashboard repo | ||
name: Sync Dashboard CRDs | ||
# Opens a PR in the opendatahub-operator repo to sync crds from the dashboard repo | ||
name: Sync Dashboard CRDs for Operator v2.x | ||
|
||
# Await dispatch from dashboard repo that crds have been modified | ||
on: | ||
workflow_dispatch | ||
# Triggers the workflow every Sat at 22pm UTC am 0 22 * * 6 | ||
schedule: | ||
- cron: "0 22 * * 6" | ||
workflow_dispatch: | ||
inputs: | ||
dashboard_label: | ||
default: "main" | ||
description: "Label from odh-dashboard to sync CRD from, default to use main branch" | ||
source_branch: | ||
default: "main" | ||
description: "branch of opendatahub-operator to checkout from" | ||
|
||
jobs: | ||
dashboard-sync: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Git checkout | ||
- name: Checkout operator source code on master branch | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: '0' | ||
fetch-depth: '1' | ||
ref: ${{ github.event.inputs.source_branch }} | ||
- name: Gather files | ||
shell: bash | ||
run: | | ||
cd ${{ github.workspace }}/config/crd/dashboard-crds | ||
svn export --force https://github.com/opendatahub-io/odh-dashboard/branches/main/manifests/crd . | ||
cd ${{ github.workspace }}/bundle/manifests | ||
svn export --force "https://github.com/opendatahub-io/odh-dashboard/tags/${{ github.event.inputs.dashboard_label }}/manifests/crd" . | ||
rm kustomization.yaml | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v4.2.3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: dashboard-sync | ||
commit-message: Automated Change | ||
title: Sync operator crds with dashboard crds | ||
body: This is an automated pull request to sync the operator crds with dashboard crds. | ||
commit-message: Automated Change by GitHub Action 'Sync Dashboard CRDs for Operator v2.x' | ||
delete-branch: true | ||
title: Sync operator v2.X dashboard CRDs from 'odh-dashboard' manifests CRDs | ||
body: This is an automated PR to sync the operator CRDs with dashboard CRDs. | ||
signoff: true |
This file contains 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
84 changes: 69 additions & 15 deletions
84
bundle/manifests/opendatahub-operator.clusterserviceversion.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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