GoogleContainerTools / GoogleContainerTools/skaffold
`debug` should make suspending on start to be configurable
Open
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
Assessment
This issue has not been assessed yet.