Skip to content

Commit

Permalink
[kubebuilder] Remove GOARCH to make it work on the Apple Silicon(M1/M…
Browse files Browse the repository at this point in the history
…2)env

## 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.
  • Loading branch information
LittleWat authored Mar 15, 2024
1 parent 6b04786 commit 1a45263
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kubebuilder/Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1a45263

Please sign in to comment.