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

Upload populator #2678

Merged
merged 6 commits into from
May 4, 2023
Merged

Upload populator #2678

merged 6 commits into from
May 4, 2023

Commits on Apr 30, 2023

  1. Create CRD for volumeuploadsource populator

    This CRD will be used in the DataSourceRef on PVCs
    to trigger population that upload to the volume.
    This will be performed by the upload populator
    that will be added in future commits.
    
    Signed-off-by: Shelly Kagan <skagan@redhat.com>
    ShellyKa13 committed Apr 30, 2023
    Configuration menu
    Copy the full SHA
    921e5c3 View commit details
    Browse the repository at this point in the history
  2. Create upload populator controller

    The upload populator controller can be used
    standalone without the need of datavolume.
    It reconciles pvc with upload dataSourceRef
    and uses populators API to populated the pvc
    with an upload command.
    The controller creates pvc' with upload
    annotation. After the upload completes it
    rebinds the pv to the original target pvc and
    deletes pvc prime.
    Eventually we get a bound PVC which is already
    populated.
    
    Signed-off-by: Shelly Kagan <skagan@redhat.com>
    ShellyKa13 committed Apr 30, 2023
    Configuration menu
    Copy the full SHA
    f60d0d2 View commit details
    Browse the repository at this point in the history
  3. Adjust upload-proxy to handle upload population

    In case of pvc with datasourceref to upload population
    we should create the url to the upload server with the
    pvc' name.
    
    Signed-off-by: Shelly Kagan <skagan@redhat.com>
    ShellyKa13 committed Apr 30, 2023
    Configuration menu
    Copy the full SHA
    ff9f5cb View commit details
    Browse the repository at this point in the history
  4. Add tests for upload population

    Signed-off-by: Shelly Kagan <skagan@redhat.com>
    ShellyKa13 committed Apr 30, 2023
    Configuration menu
    Copy the full SHA
    9cedbb2 View commit details
    Browse the repository at this point in the history
  5. Add unit tests for upload populator

    Signed-off-by: Shelly Kagan <skagan@redhat.com>
    ShellyKa13 committed Apr 30, 2023
    Configuration menu
    Copy the full SHA
    3496cf5 View commit details
    Browse the repository at this point in the history

Commits on May 3, 2023

  1. Add preallocation to volumeuploadsource crd

    Also some other small fixes
    
    Signed-off-by: Shelly Kagan <skagan@redhat.com>
    ShellyKa13 committed May 3, 2023
    Configuration menu
    Copy the full SHA
    53c17ad View commit details
    Browse the repository at this point in the history