Skip to content

Commit

Permalink
fix(kubebuilder): Update go.main path (tilt-dev#534)
Browse files Browse the repository at this point in the history
* fix(kubebuilder): Update go.main path

Kubebuilder 3.13 puts the go.main in cmd/

* fix(kubebuilder): change dependency paths
  • Loading branch information
norman-zon authored Nov 6, 2023
1 parent dd9e9f7 commit c0ec9fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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 main.go'
return 'CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -o tilt_bin/manager cmd/main.go'

installed = local("which kubebuilder")
print("kubebuilder is present:", installed)
Expand All @@ -58,7 +58,7 @@ def kubebuilder(DOMAIN, GROUP, VERSION, KIND, IMG='controller:latest', CONTROLLE

k8s_yaml(yaml())

deps = ['controllers', 'main.go']
deps = ['internal/controller', 'cmd/main.go']
deps.append('api')

local_resource('Watch&Compile', generate() + binary(), deps=deps, ignore=['*/*/zz_generated.deepcopy.go'])
Expand Down

0 comments on commit c0ec9fb

Please sign in to comment.