Skip to content

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

Open

Description

@aslafy-z

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).

Activity

  1. jpreese commented on Dec 18, 2021

    @jpreese
    Collaborator

    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?

  2. added
    questionFurther information is requested
    and removed
    questionFurther information is requested
    on Jan 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions