-
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
Use file sync only #9195
Comments
hmmmm.. with
is there a way to find out why "sync failed"? |
Hi, @izemlyanskiy There are the limitations about file-sync https://skaffold.dev/docs/filesync/#limitations that may cause it fail, could you provide a minimal reproducible project to help us get a better understanding of this issue ? Thanks |
hey @ericzzzzzzz May I ask you to add more logging so users like me are able to dig around themselves before bothering you with an issue like this one? |
It seems that the sync failing for your case is due to the image mismatch between the built image and the container image in remote pods or pods are not running. skaffold/pkg/skaffold/sync/sync.go Lines 339 to 363 in 88e1c17
Sure I'll create another issue to add log to make debug easier |
Created #9200 |
Hey. @ericzzzzzzz
Issued make and and see what I got in console (among other things) Obviously those value aren't equal. Replacing (not) equality check with !strings.HasPrefix() fixed the problem for me. Not sure though fixing the symptom is the right thing to do here |
hi! Thank you for this wonderful product, it looks very promising!
A small question: is it possible to use JUST file sync?
I think I did something wrong here, but I can't figure out what exactly.
Expected behavior
I modify a file and, according to the doc, Skaffold creates a tar file with changed files that match the sync rules. This tar file is sent to and extracted on the corresponding containers.
Actual behavior
Skaffold builds an image and tries to redeploy the whole app
the Skaffold output:
Information
Skaffold version:
v2.9.0
Operating system: Linux 5.15.0-88-generic 20.04.1-Ubuntu
Installed via: skaffold.dev
Contents of skaffold.yaml:
Steps to reproduce the behavior
skaffold dev
The text was updated successfully, but these errors were encountered: