-
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
[1.17+] Build does not push images to remote repository #5334
Comments
hi @othercorey, thanks for opening up this issue. Would it be possible for you to provide a small project setup to reproduce this? If you could also provide the output you're seeing here, that would be great! |
I am working it, but it will take me a few days to setup. I won't be able to provide an AWS ECR account though. So, if it's somehow only happening with that repository, then will have to do further testing. |
For now, if you could provide the output from |
I omitted the docker image build logs. Here is the build output with v1.19:
Here is the build output with v1.16:
|
I created a test repository with a repro. However, you have to change the AWS ECR repository to something you have access to. https://github.com/othercorey/skaffold-5337 This fails to push with skaffold 1.19
skaffold 1.16
|
Is there any more debug output I can provide? What triggers the check for a remote repo? |
I'm seeing this too on GHCR. I've narrowed it down to using the |
Comparing v1.16.0 to v1.17.0, the only really relevant change I can find is the options refactor: |
i'm investigating this one now to see what changed, our logic to determine whether a cluster is local or not is a bit tangled. while i'm doing that though, @othercorey the section of your skaffold.yaml for specifying local:
push: <- this is empty, so skaffold interprets it as false instead, if you change it to local:
push: true it should force a push. still does seem like something has changed related to cluster detection, so i'll keep looking into it. |
Thank you, I will try it out. I think that was probably from following the skaffold.xml docs which omits the false default. https://skaffold.dev/docs/references/yaml/#build-local-push Confirmed it does push with If I remove |
Interestingly when doing a local build, if your current-context is set to a remote context, it actually runs the push which is consistent with what i found before. |
I've just experienced the same issue in the same way that @aariacarterweir posted. Explicitly setting kube context to a remote cluster before running skaffold works as expected. |
I don't know if this helps at all and sorry for the lack of detail on this... I think I've experienced this issue but I'm not sure it's quite what was described here but I think it's possibly related. I found I had to delete my skaffold/config file in order for remote push to work. My skaffold.yaml has If I ran a |
/cc @nkubala to look into this further. |
Friendly ping, @nkubala, were you able to get any more information here? To summarize the comments so far: if the skaffold.yaml has
push is set
|
@othercorey does this still happen with Skaffold v1.25.0? Following @alewis001's comment, could you please share your |
@othercorey, @aariacarterweir this is fixed in #6024 I've created #6078 for the issue: if you specify a remote |
Expected behavior
Check for tag in remote repository and push images.
Actual behavior
Builds and tags images but does not push. Helm upgrade fails trying to pull image that doesn't exist.
Information
Steps to reproduce the behavior
This has been working up to version 1.17. I'm not sure of any missing configuration requirements.
The text was updated successfully, but these errors were encountered: