Skip to content

Commit 60b156e

Browse files
committed
ci: Add bundle-sync verification to operator PR workflow
Signed-off-by: ntkathole <nikhilkathole2683@gmail.com>
1 parent 326554d commit 60b156e

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

‎.github/workflows/operator_pr.yml‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,16 @@ jobs:
1919
run: make -C infra/feast-operator test
2020
- name: After code formatting, check for uncommitted differences
2121
run: git diff --exit-code infra/feast-operator
22+
- name: Regenerate bundle and verify CSV is in sync
23+
run: make -C infra/feast-operator bundle
24+
- name: Check for uncommitted bundle differences
25+
run: |
26+
# createdAt and operator-sdk builder version change every run;
27+
# ignore them so only real RBAC / structural drift fails the check.
28+
if ! git diff --exit-code \
29+
-I 'createdAt:' \
30+
-I 'operator-sdk-v' \
31+
infra/feast-operator/bundle/ infra/feast-operator/bundle.Dockerfile; then
32+
echo "::error::Bundle manifests are out of sync. Run 'make bundle' in infra/feast-operator/ and commit the result."
33+
exit 1
34+
fi

0 commit comments

Comments
 (0)