Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
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 :) |
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:d46578239dd325395e15e8ab16a2c499616a15e662ed196c18549e8d2bea38b6anew.Information
I am loading two images into my
k3dcluster.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:d46578239dd325395e15e8ab16a2c499616a15e662ed196c18549e8d2bea38b6is also contained in this output.Why is this image loaded anew into my cluster?