From 0c58406a9c7c3e70061c8c5bc917fd5365977e8e Mon Sep 17 00:00:00 2001 From: Dale Haiducek <19750917+dhaiducek@users.noreply.github.com> Date: Thu, 14 Sep 2023 14:42:37 -0400 Subject: [PATCH] Set arch to amd64 for controller-gen install The binary is only built for `amd64` Signed-off-by: Dale Haiducek <19750917+dhaiducek@users.noreply.github.com> --- hack/update-v1beta1-crds.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hack/update-v1beta1-crds.sh b/hack/update-v1beta1-crds.sh index c952047b0..b5220d2b0 100755 --- a/hack/update-v1beta1-crds.sh +++ b/hack/update-v1beta1-crds.sh @@ -4,7 +4,7 @@ CONTROLLER_GEN_VERSION=v0.6.0 CONTROLLER_GEN=_output/bin/controller-gen-$CONTROLLER_GEN_VERSION controller_gen_dir=$(dirname $CONTROLLER_GEN) GOHOSTOS=$(go env GOHOSTOS) -GOHOSTARCH=$(go env GOHOSTARCH) +GOHOSTARCH=amd64 if ! which $CONTROLLER_GEN > /dev/null; then echo "Installing controller-gen ..."; @@ -20,4 +20,3 @@ $CONTROLLER_GEN schemapatch:manifests="./crdsv1beta1" paths="./work/v1" 'output: # Because the ClusterClaim CRD is stable now, we can comment out the following line. # Uncomment to generate ClusterClaim CRD when cluster/v1alpha1/types.go is changed # $CONTROLLER_GEN schemapatch:manifests="./crdsv1beta1" paths="./cluster/v1alpha1" 'output:dir="./crdsv1beta1"' -