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 new cosa cloud-prune command for garbage collection #3798

Merged
merged 5 commits into from
Jul 12, 2024

Commits on Jul 12, 2024

  1. mantle/ore: add ore aws delete-image

    This enables us to deregister aws AMIs and/or snapshots.
    It also handles the cases of resource IDs unavailable and
    notFound by not returning an error.
    gursewak1997 committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    267de45 View commit details
    Browse the repository at this point in the history
  2. mantle: Handle error 404 for gcloud

    When the allowMissing flag is passed to the ore gcloud delete-images command,
    it allows the process to continue without erroring out when a 404 error is
    returned, indicating that the resource was not found.
    gursewak1997 committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    0dc19f2 View commit details
    Browse the repository at this point in the history
  3. Factor out the S3 functions to cosalib

    Since we use s3_check_exists and s3_copy at other places
    we factored out those functions to cosalib
    gursewak1997 committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    e2235d3 View commit details
    Browse the repository at this point in the history
  4. Add new cosa cloud-prune command for garbage collection

    Add the ability to run garbage collection on resources using
    cosa cloud-prune. This script would take policy.yaml and run
    the garbage collection accordingly for the stream specified.
    gursewak1997 committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    32e1943 View commit details
    Browse the repository at this point in the history
  5. Remove cosa remote-prune

    With the addition of cmd-cloud-prune, this command is
    mostly deprecated and hence deleting it.
    gursewak1997 committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    aec49c7 View commit details
    Browse the repository at this point in the history