-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Skaffold v0.23.0 + Windows 10 regression: didn't sync any files #1668
Comments
Hey @WoLfulus, I tried to repro this with our hot reload example and it worked as expected. Could you provide the skaffold.yaml you tried? |
Can confirm, compiled tag v0.22.0 works, master and release 0.23.0 doesn't v0.23.0: Files aren't updated in the image at all v.0.22.0 updated, and hot reload works skaffold yaml:
|
Skaffold v0.23.0 doesn't sync files . However v0.22.0 works fine |
@jeffshadap |
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:
Case 2:
Where is a bug? Workaround: |
Yes on Windows 10 |
Nope: MacOs Mojave 10.14.3 everything running in the default namespace |
Same here, no syncing after the update. Here's the console output (no error messages):
Node.js app with MacOS Mojave v10.14.3 |
Same here .. no sync of changed files (despite CLI message). |
I'm facing the same issue with skaffold running on windows syncing js files. The files seem to be going to the root folder instead of the WORKDIR. |
Hi! This issue occurs with our config for a user on MacOS 10.14.6
|
@sfxworks Are you using the latest version of skaffold? |
@tejal29 Yes, we just tried 0.40.0 and the bleeding edge binary. Same results. |
https://gist.github.com/sfxworks/a6541a5767889bb44915393f071807df Above is a To clarify, this is a bit different from the poster in that there is never a |
Since this is working on windows and specific to mac Mojave, decreasing its priority to p2. |
This issue seems to have been fixed with the latest Catalina update. |
Can someone here share a small project to reproduce? That would really help understand what's going on |
Is the recommended work-around to upgrade from Mojave to Catalina? |
A workaround is to run skaffold dev with --trigger=polling |
Every once in a while, I have been experiencing I have Minikube 1.7.3, Kustomize 3.5.4 and Skaffold 1.4.0 with multiple applications in different Kubernetes namespaces. PROBLEM: Namespace in $KUBECONFIG affects Skaffold SyncSkaffold sync will only work when the Kubernetes namespace in $KUBECONFIG, at the time of starting Skaffold, matches the namespace of the artifact (application) being deployed. The critical moment is when Skaffold starts. After Skaffold is running, I can change my current namespace in $KUBECONFIG and Skaffold sync works neatly. But, if the namespace in $KUBECONFIG is different from the hot-sync-artifact's namespace when Skaffold starts, then sync will fail with error For Skaffold Sync to work, the namespace in $KUBECONFIG must either be undefined or it must equal to the hot-sync-artifact's namespace. EXAMPLE: Namespace undefinedWithout namespace being defined, Skaffold Sync works for artifacts in any namespace:
EXAMPLE: Namespace definedHere namespace is defined and Skaffold Sync will fail for all artifacts (applications) which are not deployed in
|
Here's a workaround that fixes Skaffold Sync at least for me. Wrap
_dev() {
local current_ns; current_ns="$(kubectl config view --minify --output 'jsonpath={..namespace}')"
kubectl config set-context --current --namespace=
(sleep 3 && kubectl config set-context --current --namespace="${current_ns}" ) &
skaffold dev
} You may need to adjust This problem still exists in Skaffold 1.5.0. Fyi @dgageot here's the small repro that you asked for. |
Marking as stale because we haven't heard from the author in over a year and this specific regression has long since passed. If you run into sync problems, please open a new issue with a clear reproduction case, and please mention the operating system version. Thank you! |
Expected behavior
Sync files when it changes
Actual behavior
Did not sync files. Always shows "didn't sync any files"
Information
Any yamls I tried
Steps to reproduce the behavior
The text was updated successfully, but these errors were encountered: