Skip to content

Commit

Permalink
Set arch to amd64 for controller-gen install
Browse files Browse the repository at this point in the history
The binary is only built for `amd64`

Signed-off-by: Dale Haiducek <[email protected]>
  • Loading branch information
dhaiducek committed Oct 19, 2023
1 parent a299721 commit b4e8eda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions hack/update-v1beta1-crds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ...";
Expand All @@ -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"'

2 changes: 1 addition & 1 deletion test/integration-test.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export KUBEBUILDER_ASSETS ?=$(TEST_TMP)/kubebuilder/bin

K8S_VERSION ?=1.23.1
GOHOSTOS ?=$(shell go env GOHOSTOS)
GOHOSTARCH ?=$(shell go env GOHOSTARCH)
GOHOSTARCH =amd64
KB_TOOLS_ARCHIVE_NAME :=kubebuilder-tools-$(K8S_VERSION)-$(GOHOSTOS)-$(GOHOSTARCH).tar.gz
KB_TOOLS_ARCHIVE_PATH := $(TEST_TMP)/$(KB_TOOLS_ARCHIVE_NAME)

Expand Down

0 comments on commit b4e8eda

Please sign in to comment.