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

c8d/push: Support --platform switch #47679

Merged
merged 7 commits into from
Jun 10, 2024

Commits on Jun 10, 2024

  1. c8d/image_manifest: Add helper functions

    This adds the common helper functions used by the recent
    multiplatform-related PRs.
    
    Signed-off-by: Paweł Gronowski <[email protected]>
    vvoland committed Jun 10, 2024
    Configuration menu
    Copy the full SHA
    85249a8 View commit details
    Browse the repository at this point in the history
  2. c8d/blobsDirContentStore: Return ErrNotExists

    Translate os.ErrNotExist into cerrdefs.ErrNotExists
    
    Signed-off-by: Paweł Gronowski <[email protected]>
    vvoland committed Jun 10, 2024
    Configuration menu
    Copy the full SHA
    c16d676 View commit details
    Browse the repository at this point in the history
  3. testutils/specialimage: Add MultiPlatform

    Add utility that allows to construct an image with the specified
    platforms.
    
    Signed-off-by: Paweł Gronowski <[email protected]>
    vvoland committed Jun 10, 2024
    Configuration menu
    Copy the full SHA
    999f1c6 View commit details
    Browse the repository at this point in the history
  4. c8d/push: Support platform selection

    Add a OCI platform fields as parameters to the `POST /images/{id}/push`
    that allow to specify a specific-platform manifest to be pushed instead
    of the whole image index.
    
    When no platform was requested and pushing whole index failed, fallback
    to pushing a platform-specific manifest with a best candidate (if it's
    possible to choose one).
    
    Signed-off-by: Paweł Gronowski <[email protected]>
    vvoland committed Jun 10, 2024
    Configuration menu
    Copy the full SHA
    0a31437 View commit details
    Browse the repository at this point in the history
  5. c8d/push: Extract missing content note to an Aux progress

    Signed-off-by: Paweł Gronowski <[email protected]>
    vvoland committed Jun 10, 2024
    Configuration menu
    Copy the full SHA
    68a63d0 View commit details
    Browse the repository at this point in the history
  6. api/push: Ignore Platform on older APIs

    Signed-off-by: Paweł Gronowski <[email protected]>
    vvoland committed Jun 10, 2024
    Configuration menu
    Copy the full SHA
    b4d2283 View commit details
    Browse the repository at this point in the history
  7. c8d/image_manifest: IsPseudoImage return true for unknown/unknown pla…

    …tform
    
    Signed-off-by: Paweł Gronowski <[email protected]>
    vvoland committed Jun 10, 2024
    Configuration menu
    Copy the full SHA
    8d96d75 View commit details
    Browse the repository at this point in the history