Skip to content

skaffold debug does not forward every debuged pod #9785

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

Open
MaximeWeyl opened this issue Apr 9, 2025 · 0 comments
Open

skaffold debug does not forward every debuged pod #9785

MaximeWeyl opened this issue Apr 9, 2025 · 0 comments

Comments

@MaximeWeyl
Copy link

I have a full deployment using skaffold.
It uses helm, kubectl and kustomize to create many k8s resources in several namespaces.
I want to use the debug feature.

It is working for the pods in the namespaces returned by : GetAllPodNamespaces
But this only includes :

  • my default namespace
  • the namespaces created with helm deploy
  • and nothing else...

But some of my pods are not created using helm, and are not in the default namespace (they are created using kustomize).

For these pods, the injection of the initContainer and the use of the dlv command is working (and i am able to use it with manual port forwarding and dlv connect), but not the automatic portforward.

I tried to patch GetAllPodNamespaces to force it to use my other namespaces, and this works.

This should also work for resources created by kubectl or kustomize in other namespaces, or at least provide a manual configuration of all other namespaces to watch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant