Skip to content
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

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

Open
nathanperkins opened this issue Dec 2, 2024 · 0 comments

Comments

@nathanperkins
Copy link

nathanperkins commented Dec 2, 2024

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:
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant