-
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 reloads unchanged, existing image again into the cluster #4955
Comments
@ErolPeel Skaffold does not check if an image is already present in the cluster. would you be up for the submitting a PR to do so? |
As far as I can see, Skaffold checks, whether an image is already in the cluster or not:
And as far as I can tell this function is called for both k3d and kind. Or am I missing something? |
you are correct. i didn't look further in the code :) |
Closing as I tested Skaffold v1.17.2 with kind and I see images being detected. @ghost please let us know if you're still seeing issues. |
The single quotes around the `jsonpath` expression are incorrect: they are only needed when called in a shell, not when using `os.exec` The result was that the first image returned had a `'` prepended to the name, and the last image had a `'` appended, meaning that those images would never be considered already loaded. issue GoogleContainerTools#4955
I had the same problem, and I think I fixed it in the PR above. Does this issue need to be reopened? I'm not 100% sure on this project's workflow :) |
The single quotes around the `jsonpath` expression are incorrect: they are only needed when called in a shell, not when using `os.exec` The result was that the first image returned had a `'` prepended to the name, and the last image had a `'` appended, meaning that those images would never be considered already loaded. issue GoogleContainerTools#4955
Expected behavior
Skaffold should not load already loaded image. In my case that's the image
eu.gcr.io/tools-org-veroo/party-service:d46578239dd325395e15e8ab16a2c499616a15e662ed196c18549e8d2bea38b6
.Actual behavior
Skaffold does load image
eu.gcr.io/tools-org-veroo/party-service:d46578239dd325395e15e8ab16a2c499616a15e662ed196c18549e8d2bea38b6
anew.Information
I am loading two images into my
k3d
cluster.This is the log output:
However, both images are already in my cluster. So both images should have been found.
When I execute the command
kubectl get nodes -o jsonpath='{@.items[*].status.images[*].names[*]}'
I get this output:The image
eu.gcr.io/tools-org-veroo/party-service:d46578239dd325395e15e8ab16a2c499616a15e662ed196c18549e8d2bea38b6
is also contained in this output.Why is this image loaded anew into my cluster?
The text was updated successfully, but these errors were encountered: