Skip to content

Commit 780b74b

Browse files
committed
chore(deploy): add verify-manifests command to ensure chart and
manifests are synced
1 parent b5c259e commit 780b74b

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

Makefile

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,18 @@ container-mockgen:
158158
verify-codegen: codegen
159159
git diff --exit-code
160160

161-
verify-catalog:
161+
# this is here for backwards compatibility with the ci job that calls verify-catalog
162+
verify-catalog: verify-manifests
163+
164+
verify-manifests: ver=$(shell cat OLM_VERSION)
165+
verify-manifests:
166+
rm -rf manifests
167+
mkdir manifests
168+
./scripts/package_release.sh $(ver) manifests deploy/ocp/values.yaml
169+
# requires gnu sed if on mac
170+
find ./manifests -type f -exec sed -i "/^#/d" {} \;
171+
find ./manifests -type f -exec sed -i "1{/---/d}" {} \;
172+
git diff --exit-code
162173

163174
mockgen:
164175
$(MOCKGEN)

0 commit comments

Comments
 (0)