GoogleContainerTools / GoogleContainerTools/skaffold

`debug` should make suspending on start to be configurable

Open
#4,870 16 comments 8 reactions 0 assignees View on GitHub
area/debug kind/feature-request priority/p2
Dominant language
Go
Stars
15.9k
Forks
1.7k
Avg merge
3d 9h
Merged PRs (30d)
10

Description

`debug` currently configures containers to be in a _continue mode_ where the containers run without suspending. It can be useful for users to be able to connect to their containers immediately on execution, such as to debug a `main()` or `init()` method.

_Proposal:_ `debug` should look at the container and/or pod for a _suspend_ option and if present, then configure the pod to suspend on start (where possible). Suggestions are:
- `SKAFFOLD_DEBUG_SUSPEND` environment variable
- pod annotation for a `skaffold.dev/debug/suspend`

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.