Skip to content

Commit

Permalink
ensure all crds are patched
Browse files Browse the repository at this point in the history
  • Loading branch information
qu1queee committed Aug 16, 2023
1 parent 09d41d2 commit 64d6abc
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion hack/patch-crds-with-conversion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
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"

0 comments on commit 64d6abc

Please sign in to comment.