Hey,
We're using helm to deploy our images to the EKS and the images themselves are saved in the gitlab registry.
When we're trying to use skaffold, it will always try to download the image locally when it shouldn't because the deployment doesn't use the local images.
There's seems to be a bug in
|
if entry, err = c.tryImport(ctx, a, tag, hash, pl); err != nil { |
It tries to import the image when the image can be remote and doesn't need to be imported.
|
func isImageLocal(runCtx *runcontext.RunContext, imageName string) (bool, error) { |
Also I would suggest to put some debug logs to understand if skaffold decided that the image is remote or local.
Expected behavior
Checking cache...
- manager_microservice: Found
Actual behavior
Checking cache...
- manager_microservice: Not found. Building
Information
- Skaffold version: 2.9.0
- Operating system: ubuntu 22.04
- Installed via: skaffold.dev
- Contents of skaffold.yaml:
apiVersion: skaffold/v4beta8
kind: Config
metadata:
name: manager-microservice
build:
cluster: {}
artifacts:
- image: manager_microservice
context: ../../
sync: {}
custom:
buildCommand: Build/buildx.sh "Manager/DtmMicroservice/Dockerfile" development
dependencies:
dockerfile:
path: Manager/DtmMicroservice/Dockerfile
tagPolicy:
inputDigest: {}
skaffold build --default-repo registry.gitlab.com/.... --platform=linux/amd64 -v debug
Hey,
We're using helm to deploy our images to the EKS and the images themselves are saved in the gitlab registry.
When we're trying to use skaffold, it will always try to download the image locally when it shouldn't because the deployment doesn't use the local images.
There's seems to be a bug in
skaffold/pkg/skaffold/build/cache/lookup.go
Line 83 in 1f591ba
It tries to import the image when the image can be remote and doesn't need to be imported.
skaffold/pkg/skaffold/runner/new.go
Line 229 in 1f591ba
Also I would suggest to put some debug logs to understand if skaffold decided that the image is remote or local.
Expected behavior
Checking cache...
Actual behavior
Checking cache...
Information
skaffold build --default-repo registry.gitlab.com/.... --platform=linux/amd64 -v debug