GoogleContainerTools / GoogleContainerTools/skaffold

skaffold debug does not forward every debuged pod

Open
#9,785 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
15.9k
Forks
1.7k
Avg merge
3d 9h
Merged PRs (30d)
10

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.