From c0ec9fb70ca308f2d3e9d28a28cb6de6cb46d3d9 Mon Sep 17 00:00:00 2001 From: Norman <85173861+norman-zon@users.noreply.github.com> Date: Mon, 6 Nov 2023 18:10:08 +0100 Subject: [PATCH] fix(kubebuilder): Update go.main path (#534) * fix(kubebuilder): Update go.main path Kubebuilder 3.13 puts the go.main in cmd/ * fix(kubebuilder): change dependency paths --- kubebuilder/Tiltfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kubebuilder/Tiltfile b/kubebuilder/Tiltfile index 7c8e78209..b650ef8dd 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 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) @@ -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'])