skaffold icon indicating copy to clipboard operation
skaffold copied to clipboard

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

Open VeerMuchandi opened this issue 3 years ago • 2 comments
trafficstars

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"

VeerMuchandi avatar Mar 31 '22 02:03 VeerMuchandi

Thanks @VeerMuchandi, would it possible for you to add a verbose=trace logs.

If not, its completely fine.

tejal29 avatar Mar 31 '22 16:03 tejal29

Thanks a lot created a gist for this and posted it here for the team to take a look https://gist.github.com/tejal29/aacdb13cf8830609b0845606bbc1c0b0

tejal29 avatar Mar 31 '22 18:03 tejal29