Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Added script and compiler option to run admin in debug mode #184

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ k8s_integration_execute:
compile:
go build -o flyteadmin -ldflags=$(LD_FLAGS) ./cmd/ && mv ./flyteadmin ${GOPATH}/bin

.PHONY: compile_debug
compile_debug:
go build -gcflags='all=-N -l' -o flyteadmin ./cmd/ && mv ./flyteadmin ${GOPATH}/bin


.PHONY: linux_compile
linux_compile:
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o /artifacts/flyteadmin -ldflags=$(LD_FLAGS) ./cmd/
Expand Down
2 changes: 2 additions & 0 deletions script/debug.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dlv --listen=:2345 --headless=true --api-version=2 --accept-multiclient exec ${GOPATH}/bin/flyteadmin serve -- --config flyteadmin_config.yaml --server.kube-config ~/.kube/config