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 --prefer-index flag forimagetools create on a single source #2482

Merged
merged 6 commits into from
May 31, 2024

Commits on May 29, 2024

  1. Added application/vnd.docker.distribution.manifest.v2+json mediatype …

    …to the list of mediatypes we return the original bytes for when calling *Resolver.Combine rather than adding it to a newly created manifest list
    
    Signed-off-by: Tim Smith <tismith@rvohealth.com>
    rvoh-tismith committed May 29, 2024
    Configuration menu
    Copy the full SHA
    0808747 View commit details
    Browse the repository at this point in the history
  2. Add a --prefer-index flag that allows you to specify the preferred be…

    …havior when deciding on how to create an image/manifest from a single source.
    
    Signed-off-by: Tim Smith <tismith@rvohealth.com>
    rvoh-tismith committed May 29, 2024
    Configuration menu
    Copy the full SHA
    abf6c77 View commit details
    Browse the repository at this point in the history
  3. Slightly refactored the mediaType check on single source so that now …

    …we return original bytes without filtering on mediaType, based on the preferIndex preference.
    
    Signed-off-by: Tim Smith <tismith@rvohealth.com>
    rvoh-tismith committed May 29, 2024
    Configuration menu
    Copy the full SHA
    2061550 View commit details
    Browse the repository at this point in the history

Commits on May 30, 2024

  1. Updated tests to test new --prefer-index flag

    Signed-off-by: Tim Smith <tismith@rvohealth.com>
    rvoh-tismith committed May 30, 2024
    Configuration menu
    Copy the full SHA
    388af35 View commit details
    Browse the repository at this point in the history
  2. Updated tests further to make sure the new flag doesn't affect copy a…

    …n index regardless of what value you specify.
    
    Signed-off-by: Tim Smith <tismith@rvohealth.com>
    rvoh-tismith committed May 30, 2024
    Configuration menu
    Copy the full SHA
    117c901 View commit details
    Browse the repository at this point in the history
  3. Updated the docs.

    Signed-off-by: Tim Smith <tismith@rvohealth.com>
    rvoh-tismith committed May 30, 2024
    Configuration menu
    Copy the full SHA
    7bfae2b View commit details
    Browse the repository at this point in the history