-
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
First and last images are not detected when loading images to the cluster #9448
Comments
…d single quote to the jsonpath (GoogleContainerTools#9448)
@ericzzzzzzz Thank you very much! Do you know when will be the next release which will contain this fix? |
Sorry, I haven't seen yours otherwise I would have commented on that one, I came up with the same solution on my own. @ericzzzzzzz could you give feedback for us about the issues and PRs, what was wrong with the previous one? |
@ComaVN sorry, it was my bad. I forgot that we already had your pr. |
No worries, just glad it's fixed 👍 |
Expected behavior
The second time I start the project the image should be "Found" instantly since the Kubernetes node has the image.
If I would run
kubectl get nodes -ojsonpath='{@.items[*].status.images[*].names[*]}' | tr " " "\n"
I would get the following:And the
skaffold dev
command's output should contain this and it should continue instantly:Actual behavior
The second time I start the project the image is not "Found" but will be "Loaded" again despite the fact that the Kubernetes node has the image.
If I run
kubectl get nodes -ojsonpath='{@.items[*].status.images[*].names[*]}' | tr " " "\n"
I get the following:The
skaffold dev
command's output contains this and it's loading for a couple of seconds/minutes at this point depending on the image size:Information
I debugged Skaffold source on my local machine and I discovered the problem, Skaffold can not detect the first and last images because of an escaping problem. Because of this it's hard to reproduce, you need to have luck to have the problematic image at the first or at the last place. I'm going to send a PR soon.
Steps to reproduce the behavior
skaffold dev
and everything is going to be built and runningskaffold dev
and everything is going to be built and runningThe text was updated successfully, but these errors were encountered: