GoogleContainerTools / GoogleContainerTools/skaffold

Debug port is not forwarded when using Helm deploy

Open
#8,927 0 comments 0 reactions 0 assignees View on GitHub
area/debug needs-reproduction
Dominant language
Go
Stars
15.9k
Forks
1.7k
Avg merge
3d 9h
Merged PRs (30d)
10

Description

### Expected behavior
Skaffold should automatically create a port-forward for the defined services and the debug port .
### Actual behavior
Skaffold updated the pod configuration to use delve. However, it only creates the port-forward for the services ports.

### Information

- Skaffold version: v2.6.0
- Operating system: Mac OS 13.4.1 (22F82) Macbook Pro M1
- Installed via: Homebrew
- Contents of skaffold.yaml:

```yaml
apiVersion: skaffold/v4beta2
kind: Config
build:
local:
concurrency: 5
push: false
artifacts:
- image: myservice
context: .
ko: {}

deploy:
helm:
releases:
- name: myapp
chartPath: ./chart
namespace: default
setValueTemplates:
image: myservice

profiles:
- name: test
manifests:
helm:
releases:
- name: myapp
chartPath: ./chart
setValues:
image: myservice
deploy:
kubectl: {}
```

### Steps to reproduce the behavior

1. Clone https://github.com/jdartigalongue/skaffold-issue
2. `skaffold debug --port-forward` Notice that the only port forwarded is 8080
3. `skaffold debug --port-forward -p test` Using Helm render and deploy via Kubectl works fine though. Both 8080 and 56268 (debug) are forwarded

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.