add debug

This commit is contained in:
Chris Lu 2020-10-18 00:06:49 -07:00
parent a5c5e85f2a
commit f734443207
1 changed files with 4 additions and 0 deletions

View File

@ -40,6 +40,10 @@ manager: generate fmt vet
run: generate fmt vet manifests
go run ./main.go
debug: generate fmt vet manifests
go build -gcflags="all=-N -l" ./main.go
ENABLE_WEBHOOKS=false dlv --listen=:2345 --headless=true --api-version=2 --accept-multiclient exec main
# Install CRDs into a cluster
install: manifests kustomize
$(KUSTOMIZE) build config/crd | kubectl apply -f -