File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,18 @@ ifndef PROVIDER_VERSION
1212 $(error PROVIDER_VERSION is undefined)
1313endif
1414
15+ verify : verify-ocp-manifests
16+
17+ # NOTE: This target extracts the provider version from the existing generated manifest
18+ # and uses it for regeneration. This means the version label itself is NOT verified,
19+ # only that the rest of the manifest structure is correct.
20+ verify-ocp-manifests :
21+ @echo " Extracting provider version from existing manifest..."
22+ $(eval PROVIDER_VERSION := $(shell yq eval '.metadata.labels."provider.cluster.x-k8s.io/version"' manifests/0000_30_cluster-api_04_cm.infrastructure-aws.yaml) )
23+ @echo " Using PROVIDER_VERSION=$( PROVIDER_VERSION) for verification"
24+ @$(MAKE ) ocp-manifests PROVIDER_VERSION=$(PROVIDER_VERSION )
25+ ./verify-diff.sh
26+
1527.PHONY : update-manifests-gen
1628update-manifests-gen :
1729 cd tools && go get github.com/openshift/cluster-capi-operator/manifests-gen && go mod tidy && go mod vendor
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ FILE_DIFF=$( git ls-files -o --exclude-standard)
4+
5+ if [ " $FILE_DIFF " != " " ]; then
6+ echo " Found untracked files:"
7+ echo $FILE_DIFF
8+ exit 1
9+ fi
10+
11+ git diff --exit-code
You can’t perform that action at this time.
0 commit comments