GoogleContainerTools / GoogleContainerTools/skaffold

Skaffold generated with generate-manifests doesnt sync code when you use with Cloud Code "Debug on Kubernetes"

Open
#7,247 2 comments 0 reactions 0 assignees View on GitHub
area/debug kind/bug priority/p2
Dominant language
Go
Stars
15.9k
Forks
1.7k
Avg merge
3d 9h
Merged PRs (30d)
10

Description

### Expected behavior
If you make changes to the code while in "Debug on Kubernetes" the code sync between the editor and the container should work exactly the same way as with "Run on Kubernetes"

### Actual behavior
Instead of syncing the code, it rebuilds the container and deploys again.

### Information

- Skaffold version: 1.36.0
- Operating system: Running from Cloud Workstations
- Installed via:
- Contents of skaffold.yaml:

```
apiVersion: skaffold/v2beta27
kind: Config
metadata:
name: mynodejsapp
build:
artifacts:
- image: mynodejsapp
buildpacks:
builder: gcr.io/buildpacks/builder:v1
deploy:
kubectl:
manifests:
- deployment.yaml
portForward:
- resourceType: service
resourceName: mynodejsapp
port: 8080

```

### Steps to reproduce the behavior

1. Follow the steps here https://github.com/VeerMuchandi/InnerLoopDev/blob/main/NodeJsInnerLoopSetup.md
2. Run the application in debug mode with `Debug on Kubernetes`
3. Make a change to the message while in the debug mode and notice that it rebuilds the container and redeploys as opposed to just syncing the files when you use "Run on Kubernetes"

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.