From 372cfe1601823e0235f72dc22d94731797b2333a Mon Sep 17 00:00:00 2001 From: Matt Moyer Date: Thu, 12 Nov 2020 15:48:03 -0600 Subject: [PATCH] Remove CRD count check, since we can now use wildcards. This check predates the API renaming we did. Now that our API groups have `concierge`/`supervisor` in the name, we don't need to maintain a specific set of `cp` commands and keep them in sync, so we don't really need this check. Signed-off-by: Matt Moyer --- hack/update.sh | 7 ------- 1 file changed, 7 deletions(-) diff --git a/hack/update.sh b/hack/update.sh index ac960539..a743d76a 100755 --- a/hack/update.sh +++ b/hack/update.sh @@ -14,12 +14,5 @@ xargs -n 1 -P 8 "$ROOT/hack/lib/update-codegen.sh" < "${ROOT}/hack/lib/kube-vers cp "$ROOT"/generated/1.19/crds/*.supervisor.*.yaml "$ROOT/deploy/supervisor" cp "$ROOT"/generated/1.19/crds/*.concierge.*.yaml "$ROOT/deploy/concierge" -# Make sure we didn't miss any new CRDs. -crdCount=$(find "$ROOT"/generated/1.19/crds/ -maxdepth 1 -type f -name '*.yaml' | wc -l | tr -d ' ') -if [[ "$crdCount" != "3" ]]; then - echo "Looks like you added a new CRD. Please update this update.sh script to decide where to copy it and then run it again." - exit 1 -fi - # Tidy. "$ROOT/hack/module.sh" tidy