-
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
Custom builder should be able to return image digest #4624
Comments
Hi @dwctua, when you get the chance, would you be able to share the error message you're seeing when trying to build and push without allowing skaffold access to the image registry? Thanks :) |
see error below after run skaffold dev
|
I updated the skaffold.yaml. the build.sh can be an empty file for the demo. the idea is let build.sh handle image build and push, but use skaffold as file watcher to trigger the build and re-deployment. |
It looks like the error is coming from a caching related step of skaffold where we add a tag to the remote image. If you try to run skaffold with |
I'm still getting the same error by running command: skaffold run --cache-artifacts=false |
Ah okay, thanks for trying it out. I'll bring this issue up in our team discussion soon 👍🏽 |
@dwctua, skaffold needs to fetch the remote digest associated with the image to substitute all image names in the manifests. One thing, we could do is, expose another environment variables where e.g. |
I like the environment variable, this will remove the dependency for docker registry. As side note, Skaffold is using both tag and digest, it is also causing issue in openshift. |
bumping the priority on this as I don't think our team has the bandwidth to push this through right now. PRs welcome! |
For customized build, user is responsible for build and publish the image. Skaffold do not need to do the extra validation, or user should be able to disable it. Otherwise, user have to make the extra configuration to allow skaffold to access the image, for example, we need to make the registry public accessible.
Expected behavior
Skaffold skip the validation for customized build
Actual behavior
Skaffold is validating the image and extra config is required.
.
Information
The text was updated successfully, but these errors were encountered: