-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
operator-sdk v0.19.1 cli does not support all the features that was in v0.18.2. Specifically --enable-delve #3630
Comments
Hi @apm-opentt, Are you using the new layout with the Kubebuilder style or the legacy one? Note that for the legacy layout, you will still able to use operator-sdk run local -enable-delve (See 0.19 local code) However, beware that the legacy layout will no longer be supported after 1.0.0. For the new layout, it is not a valid option by default but users are able to customize their Makefile as they wish. See that it has the target # Run with delve against the configured Kubernetes cluster in ~/.kube/config
run-delve: generate fmt vet manifests
go build main.go
dlv --listen=:2345 --headless=true --api-version=2 --accept-multiclient exec ./main Please, let us know if it answers your question. |
Thanks @camilamacedo86.
I added the |
Hi @apm-opentt,
If you created your project with
What do you mean with? Would you like to have this target scaffolded by default? |
Hi @camilamacedo86, I used |
Since this is a go scaffold related issue, this should be addressed in the kubebuilder repo. However this isn't likely something kubebuilder will adopt. The Mikefile is yours to modify, so feel free to add this target! |
Type of question
Are you asking about community best practices, how to implement a specific feature, or about general context and help around the operator-sdk?
Yes
Question
What did you do?
A clear and concise description of the steps you took (or insert a code snippet).
I am trying to run operator-sdk in local debug mode so I can attach vscode to it. Using operator-sdk v0.18.2 I can do this with the command
operator-sdk run local --watch-namespace=default --enable-delve
What did you expect to see?
A clear and concise description of what you expected to happen (or insert a code snippet).
I expect the process to launch like the following
What did you see instead? Under which circumstances?
A clear and concise description of what you expected to happen (or insert a code snippet).
In operator-sdk v0.19.1
local
is no longer an option foroperator-sdk run
I noticed that in v0.19.1, run local is replaced with
make run ENABLE_WEBHOOKS=false
. However,make run
does not have the options to run delve and set namespace. Here is the help output for make run:Environment
operator-sdk version:
operator-sdk version: "v0.19.1", commit: "24395e17b0f2601320227b7ca32b5f54db000e42", kubernetes version: "v1.18.2", go version: "go1.14.5 darwin/amd64"
insert release or Git SHA here
Kubernetes version information:
insert output of
kubectl version
hereKubernetes cluster kind:
Additional context
Is delve debugging still supported in v0.19.1? If yes, are there any documentation to describe it in v0.19.1?
Thanks!
The text was updated successfully, but these errors were encountered: