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

Specify exact image(s) to build with skaffold build #9550

Open
jsok opened this issue Oct 21, 2024 · 0 comments
Open

Specify exact image(s) to build with skaffold build #9550

jsok opened this issue Oct 21, 2024 · 0 comments

Comments

@jsok
Copy link

jsok commented Oct 21, 2024

skaffold build --build-images=[] is useful in being able to build just a subset of images, however the strings.Contains() matching is problematic for configurations that have similarly named images.

Expected behavior

Given a config like:

apiVersion: skaffold/v4beta11
kind: Config
build:
  artifacts:
    - image: foo-api
    - image: bar-api
    - image: bar-api-v2

Support some way of building only bar-api, e.g. skaffold build --build-only=bar-api

Actual behavior

Both bar-api and bar-api-v2 will be built if you run: skaffold build --build-image=bar-api

Information

  • Skaffold version: v2.13.2
  • Operating system: macOS
  • Installed via: Homebrew
  • Contents of skaffold.yaml:
apiVersion: skaffold/v4beta11
kind: Config
build:
  artifacts:
    - image: foo-api
    - image: bar-api
    - image: bar-api-v2

Steps to reproduce the behavior

Example above.

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

2 participants
@jsok and others