From 1a452637db5414c026111db50c02c080a8a9123c Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Fri, 15 Mar 2024 10:31:37 +0900 Subject: [PATCH] =?UTF-8?q?[kubebuilder]=20Remove=20GOARCH=20to=20make=20i?= =?UTF-8?q?t=20work=20on=20the=20Apple=20Silicon=EF=BC=88M1/M2=EF=BC=89env?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## change - [kubebuilder] Remove GOARCH to make it work on the Apple Silicon(M1/M2)env ## test - I confirmed that this works on both the linux amd64 env and the darwin arm64 env. --- kubebuilder/Tiltfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kubebuilder/Tiltfile b/kubebuilder/Tiltfile index b650ef8dd..b259ae1e4 100644 --- a/kubebuilder/Tiltfile +++ b/kubebuilder/Tiltfile @@ -36,7 +36,7 @@ def kubebuilder(DOMAIN, GROUP, VERSION, KIND, IMG='controller:latest', CONTROLLE # build to tilt_bin beause kubebuilder has a dockerignore for bin/ def binary(): - return 'CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -o tilt_bin/manager cmd/main.go' + return 'CGO_ENABLED=0 GOOS=linux GO111MODULE=on go build -o tilt_bin/manager cmd/main.go' installed = local("which kubebuilder") print("kubebuilder is present:", installed)