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

Add support for a filter cli flag in the sync command #48

Open
aslafy-z opened this issue Sep 23, 2021 · 1 comment
Open

Add support for a filter cli flag in the sync command #48

aslafy-z opened this issue Sep 23, 2021 · 1 comment

Comments

@aslafy-z
Copy link

Allow filtering images to synchronize based on the name of the images.

eg: images.yaml

sources:
- repository: coreos/prometheus-operator
  host: quay.io
  tag: v0.40.0
- repository: super/secret
  tag: v0.3.0
  auth:
    username: DOCKER_USER_ENV
    password: DOCKER_PASSWORD_ENV
- repository: nginx
  digest: sha256:bbda10abb0b7dc57cfaab5d70ae55bd5aedfa3271686bace9818bba84cd22c29
sinker -m images.yaml push --filter nginx

will push only the images matching the filter (as a regexp).

@jpreese
Copy link
Collaborator

jpreese commented Dec 18, 2021

The image manifest is intended to be declarative in that whats defined in your manifest file, is what is pushed. Selectively pushing images in the manifest goes against that a little bit.

Would the imperative sinker push command work in this scenario?

sinker push -i image.com/repo:v1.0.0 -t host.com/repo

If not, what problem are you running into that you're wanting to be able to filter?

@jpreese jpreese added question Further information is requested needs-clarification and removed question Further information is requested labels Jan 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants