skaffold: Skaffold v0.23.0 + Windows 10 regression: didn't sync any files
Expected behavior
Sync files when it changes
Actual behavior
Did not sync files. Always shows “didn’t sync any files”
Information
- Skaffold version: v0.23.0
- Operating system: Windows 10
- Contents of skaffold.yaml:
Any yamls I tried
Steps to reproduce the behavior
- Update to v0.23.0 from v0.22.0
- Sync stops working
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 3
- Comments: 22 (9 by maintainers)
Here’s a workaround that fixes Skaffold Sync at least for me.
Wrap
skaffold devin a script whichskaffold devYou may need to adjust
sleep 3for your environment.This problem still exists in Skaffold 1.5.0.
Fyi @dgageot here’s the small repro that you asked for.
A workaround is to run skaffold dev with --trigger=polling
Same here, no syncing after the update. Here’s the console output (no error messages):
Node.js app with
nodemonrefreshing upon file changeMacOS Mojave v10.14.3 Docker Desktop v2.0.2.0 Kubernetes v1.13.0
Nope: MacOs Mojave 10.14.3
everything running in the default namespace
Maybe this will be helpful:
Linux environment. I see that problem when my context namespace differ from a namespace defined for Helm chart, for example:
Case 1:
skaffold.yaml,testnamespace defined inskaffold.yamlResult:Case 2:
stagingnamespace defined inskaffold.yamlResult:Where is a bug? Well, probably skaffold do not use proper namespace after deployment to communicate with the cluster?
Workaround: Always change context namespace to a namespace defined in
skaffold.yamlor Helm chart before using skaffold.