From 9760c036176fdc63a7f96092c86e067dd891f34c Mon Sep 17 00:00:00 2001 From: Matt Moyer Date: Fri, 30 Oct 2020 11:12:53 -0500 Subject: [PATCH] Do codegen across all version in parallel. This only matters for local development, since we don't use this script directly in CI. Makes the full codegen ste take ~90s on my laptop. Signed-off-by: Matt Moyer --- hack/update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/update.sh b/hack/update.sh index 98593f03..6a3cb383 100755 --- a/hack/update.sh +++ b/hack/update.sh @@ -8,7 +8,7 @@ set -euo pipefail ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )" # Generate code. -xargs "$ROOT/hack/lib/update-codegen.sh" < "${ROOT}/hack/lib/kube-versions.txt" +xargs -n 1 -P 8 "$ROOT/hack/lib/update-codegen.sh" < "${ROOT}/hack/lib/kube-versions.txt" # Copy each CRD yaml to the app which should cause it to be installed. cp "$ROOT"/generated/1.19/crds/*oidcproviderconfigs.yaml "$ROOT/deploy/supervisor"