From c75f6ffd82c0625600f41406f2e760e6c455644e Mon Sep 17 00:00:00 2001 From: Travis Nielsen Date: Thu, 10 Mar 2022 14:15:31 -0700 Subject: [PATCH] build: clean the olm dir for crd generation The volume replication crds were being added to the generation directory and causing subsequent builds to pick up those crds in the generation of crds.yaml and the helm generation. To keep the volume replication crds out of the generation, the directory needs to be cleaned with each run. Signed-off-by: Travis Nielsen --- build/crds/build-crds.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build/crds/build-crds.sh b/build/crds/build-crds.sh index bc4281813..6eb31b1dc 100755 --- a/build/crds/build-crds.sh +++ b/build/crds/build-crds.sh @@ -103,8 +103,13 @@ build_helm_resources() { ######## # MAIN # ######## +# clean the directory where CRDs are generated +rm -fr "$OLM_CATALOG_DIR" + +# generate the CRDs generating_crds_v1 +# get the OBC CRDs if [ -z "$NO_OB_OBC_VOL_GEN" ]; then echo "Generating obcs in crds.yaml" copy_ob_obc_crds