File tree Expand file tree Collapse file tree 3 files changed +37
-2
lines changed Expand file tree Collapse file tree 3 files changed +37
-2
lines changed Original file line number Diff line number Diff line change 1+ # a simple boolean to check of a CRD sync check is needed
2+ name : CRD sync check
3+
4+ on :
5+ schedule :
6+ - cron : ' 0 */2 * * *' # every 2 hours
7+ workflow_dispatch :
8+
9+ jobs :
10+
11+ crd-sync-check :
12+ if : github.repository_owner == 'openstack-k8s-operators'
13+ name : CRD sync check
14+ runs-on : ubuntu-latest
15+
16+ steps :
17+ - name : Checkout repository
18+ uses : actions/checkout@v4
19+ with :
20+ ref : ${{ github.ref_name }}
21+
22+ - name : run make force-bump
23+ shell : bash
24+ run : |
25+ BRANCH='${{ github.ref_name }}' make force-bump
26+
27+ - name : run make bindata
28+ shell : bash
29+ run : |
30+ make bindata
31+
32+ - name : Fail if there are local CRD changes requiring a CRD sync
33+ run : |
34+ git diff --quiet bindata/crds
Original file line number Diff line number Diff line change 11# openstack-operator
22
33[ ![ 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 )
4+ [ ![ 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 )
45
56This is the primary operator for OpenStack. It is a "meta" operator, meaning it
67serves to coordinate the other operators for OpenStack by watching and configuring
Original file line number Diff line number Diff line change 11# A quick way to test a fake minor update. Run this script, and then once the
22# openstackversion reconciles (the CSV will redeploy the controller-manager)
33# you can set targetVersion == 0.0.2 for a quick test
4- oc get csv openstack-operator.v0.0.1 -o yaml -n openstack-operators > csv.yaml
4+ oc get csv openstack-operator.v0.3.0 -o yaml -n openstack-operators > csv.yaml
55# bump them to current-podified
66sed -i csv.yaml -e " s|value: .*quay.io/podified-antelope-centos9/\(.*\)@.*|value: quay.io/podified-antelope-centos9/\1:current-podified|g"
77# also bump the OPENSTACK_RELEASE_VERSION value (it is the only field set like this)
8- sed -i csv.yaml -e " s|value: 0.0.1 |value: 0.0.2 |"
8+ sed -i csv.yaml -e " s|value: 0.3.0 |value: 0.3.1 |"
99oc apply -n openstack-operators -f csv.yaml
You can’t perform that action at this time.
0 commit comments