GoogleContainerTools / GoogleContainerTools/skaffold

skaffold verify --default-repo doesn't work the same way as in build or deploy

Open
#9,592 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
15.9k
Forks
1.7k
Avg merge
3d 9h
Merged PRs (30d)
10

Description

### Expected behavior

`skaffold verify --default-repo=$IMAGE_REPO` should apply the default repo to verify images, similar to how it works with `skaffold build`, `skaffold deploy`, etc.

For example, with `--default-repo=gcr.io/my-project`, the resulting image for `foo-e2e-test` would be `gcr.io/my-project/foo-e2e-test:random_stuff`

### Actual behavior

`skaffold verify --default-repo=$IMAGE_REPO` resulted in the default repo not being added to the image.

### Information

- Skaffold version: v1
- Operating system: Linux
- Installed via: skaffold.dev
- Contents of skaffold.yaml:

```yaml
build:
local:
useBuildkit: true
concurrency: 0
artifacts:
...
- image: foo-e2e-test
docker:
dockerfile: build/images/foo-e2e-test/Dockerfile
requires:
- image: gobuilder
alias: GOBUILDER

verify:
- name: foo-e2e-test
container:
name: foo-e2e-test
image: foo-e2e-test
executionMode:
kubernetesCluster: {}
```

### Steps to reproduce the behavior

1. Create a skaffold yaml which builds a test container locally without repo provided and uses it for verify.
2. Run `skaffold verify --default-repo=$IMAGE_REPO`.
3. Observe the resulting image used for the verify image does not have the default repo applied.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.