build: add yamlgen to build deployment files

This initial version of yamlgen generates deploy/scc.yaml based on the
deployment artifact that is provided by the new api/deploy/ocp package.

Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos
2021-10-01 14:08:56 +02:00
committed by mergify[bot]
parent 36e099d939
commit 5ea99fdd5b
32 changed files with 8850 additions and 2 deletions

View File

@ -163,8 +163,13 @@ cephcsi: check-env
e2e.test: check-env
go test $(GO_TAGS) -mod=vendor -c ./e2e
deploy/scc.yaml: api/deploy/ocp/scc.go
$(MAKE) -C tools generate-deploy
#
# Update the generated deploy/ files when the template changed. This requires
# running 'go mod vendor' so update the API files under the vendor/ directory.
.PHONY: generate-deploy
generate-deploy:
go mod vendor
$(MAKE) -C deploy
#
# e2e testing by compiling e2e.test in case it does not exist and running the