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
13 changes: 13 additions & 0 deletions .github/workflows/crd-sync-check-olive.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: CRD sync check olive branch

on:
schedule:
- cron: '0 */2 * * *' # every 2 hours
workflow_dispatch:

jobs:
call-build-workflow:
if: github.repository_owner == 'openstack-k8s-operators'
uses: ./.github/workflows/crd-sync-check.yaml
with:
branch_name: olive
23 changes: 20 additions & 3 deletions .github/workflows/crd-sync-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ on:
schedule:
- cron: '0 */2 * * *' # every 2 hours
workflow_dispatch:
inputs:
branch_name:
default: 'main'
type: string
workflow_call:
inputs:
branch_name:
default: 'main'
type: string

jobs:

Expand All @@ -14,21 +23,29 @@ jobs:
runs-on: ubuntu-latest

steps:

- name: Set branch
id: set_branch
run: |
BRANCH_NAME="${{ inputs.branch_name || github.ref_name }}"
echo "branch name set to: $BRANCH_NAME"
echo "branch_name=$BRANCH_NAME" >> $GITHUB_OUTPUT

- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.ref_name }}
ref: ${{ steps.set_branch.outputs.branch_name }}

- name: run make force-bump
shell: bash
run: |
BRANCH='${{ github.ref_name }}' make force-bump
BRANCH='${{ steps.set_branch.outputs.branch_name }}' make force-bump

- name: run make bindata
shell: bash
run: |
make bindata

- name: Fail if there are local CRD changes requiring a CRD sync
- name: Fail if there are local CRD changes in bindata/crds
run: |
git diff --quiet bindata/crds
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# openstack-operator

[![CodeQL](https://github.com/openstack-k8s-operators/openstack-operator/actions/workflows/codeql.yml/badge.svg)](https://github.com/openstack-k8s-operators/openstack-operator/actions/workflows/codeql.yml)
[![CRD sync check](https://github.com/openstack-k8s-operators/openstack-operator/actions/workflows/crd-sync-check.yaml/badge.svg)](https://github.com/openstack-k8s-operators/openstack-operator/actions/workflows/crd-sync-check.yaml)
[![CRD sync check main](https://github.com/openstack-k8s-operators/openstack-operator/actions/workflows/crd-sync-check.yaml/badge.svg)](https://github.com/openstack-k8s-operators/openstack-operator/actions/workflows/crd-sync-check.yaml)
[![CRD sync check olive](https://github.com/openstack-k8s-operators/openstack-operator/actions/workflows/crd-sync-check-olive.yaml/badge.svg)](https://github.com/openstack-k8s-operators/openstack-operator/actions/workflows/crd-sync-check-olive.yaml)

This is the primary operator for OpenStack. It is a "meta" operator, meaning it
serves to coordinate the other operators for OpenStack by watching and configuring
Expand Down