Skip to content

Commit 026ab8e

Browse files
committed
adding verify-manifests make target
1 parent 07f6abf commit 026ab8e

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,10 @@ manifests: controller-gen kustomize ## Generate RBAC objects.
153153
$(KUSTOMIZE) build config/crd/mcad > config/crd/mcad.yaml
154154
git restore config/*
155155

156+
.PHONY: verify-manifests
157+
verify-manifests: manifests
158+
./hack/verify-manifests.sh
159+
156160
.PHONY: fmt
157161
fmt: ## Run go fmt against code.
158162
go fmt ./...

hack/verify-manifests.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
manifest_file=config/crd/mcad.yaml
4+
appwrappers=appwrappers.workload.codeflare.dev
5+
quotasubtrees=quotasubtrees.quota.codeflare.dev
6+
schedulingspecs=schedulingspecs.workload.codeflare.dev
7+
8+
echo $manifest_file
9+
if grep $appwrappers $manifest_file \
10+
&& grep $quotasubtrees $manifest_file \
11+
&& grep $schedulingspecs $manifest_file; then
12+
echo all required CRDs are present
13+
else
14+
echo CRDs not found
15+
fi

0 commit comments

Comments
 (0)