From 64d6abc766ec60c4452834fac43b100cea86c4ba Mon Sep 17 00:00:00 2001 From: encalada Date: Wed, 16 Aug 2023 16:30:01 +0200 Subject: [PATCH] ensure all crds are patched --- hack/patch-crds-with-conversion.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/hack/patch-crds-with-conversion.sh b/hack/patch-crds-with-conversion.sh index d9c86e819e..2ac408b0b5 100755 --- a/hack/patch-crds-with-conversion.sh +++ b/hack/patch-crds-with-conversion.sh @@ -38,4 +38,14 @@ echo "[INFO] Build CRD successfully patched" echo "[INFO] Going to patch the BuildRun CRD" $TARGET_DIR/spruce merge $DIR/hack/customization/conversion_webhook_block.yaml $DIR/deploy/crds/shipwright.io_buildruns.yaml > /tmp/shipwright.io_buildruns.yaml mv /tmp/shipwright.io_buildruns.yaml "${DIR}"/deploy/crds/shipwright.io_buildruns.yaml -echo "[INFO] Build CRD successfully patched" \ No newline at end of file +echo "[INFO] BuildRun CRD successfully patched" + +echo "[INFO] Going to patch the BuildStrategy CRD" +$TARGET_DIR/spruce merge $DIR/hack/customization/conversion_webhook_block.yaml $DIR/deploy/crds/shipwright.io_buildstrategies.yaml > /tmp/shipwright.io_buildstrategies.yaml +mv /tmp/shipwright.io_buildstrategies.yaml "${DIR}"/deploy/crds/shipwright.io_buildstrategies.yaml +echo "[INFO] BuildStrategy CRD successfully patched" + +echo "[INFO] Going to patch the ClusterBuildStrategy CRD" +$TARGET_DIR/spruce merge $DIR/hack/customization/conversion_webhook_block.yaml $DIR/deploy/crds/shipwright.io_clusterbuildstrategies.yaml > /tmp/shipwright.io_clusterbuildstrategies.yaml +mv /tmp/shipwright.io_clusterbuildstrategies.yaml "${DIR}"/deploy/crds/shipwright.io_clusterbuildstrategies.yaml +echo "[INFO] ClusterBuildStrategy CRD successfully patched" \ No newline at end of file