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

[OCIRepository] Optimise OCI artifacts reconciliation #913

Merged
merged 3 commits into from
Sep 26, 2022

Commits on Sep 23, 2022

  1. Add option to copy the OCI layer to storage

    Add on optional field to the `OCIRepository.spec.layerSelector` called `operation` that accepts one of the following values: `extract` or `copy`. When the operation is set to `copy`, instead of extracting the compressed layer, the controller copies the compressed blob as it is to storage, thus keeping the original content unaltered.
    
    Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
    stefanprodan committed Sep 23, 2022
    Configuration menu
    Copy the full SHA
    4ec51ca View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2022

  1. Optimise OCI artifacts reconciliation

    - Fetch the upstream digest before validation and pulling
    - Pull artifact only if the upstream digest is different from the one in storage
    - Add the image tag to the revision string `<tag>/<digest-hex>` for a better UX
    - Extract the layer processing to a dedicated function
    
    Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
    stefanprodan committed Sep 24, 2022
    Configuration menu
    Copy the full SHA
    aae9d91 View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2022

  1. Use the OCI artifact revision in status and events

    Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
    stefanprodan committed Sep 26, 2022
    Configuration menu
    Copy the full SHA
    3f7d463 View commit details
    Browse the repository at this point in the history