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

backend-storage/backups/tag-on-upload #281

Merged
merged 5 commits into from
Nov 21, 2023
Merged

Conversation

roivaz
Copy link
Member

@roivaz roivaz commented Nov 20, 2023

In order for the bucket replication policy based on tags to trigger in a replicated AWS bucket, the tags need to be present on object creation. Uploading the object and then adding the backups doesn't trigger the replication.
This PR uses python's boto3 to upload the backup intead of awscli, as it has support to specify object tags directly in the upload api call.

The code has been reworked to support both the remote execution over ssh of commands and scripts passed through stdin to the remote server.

/kind feature
/priority important-longterm
/assign

@3scale-robot 3scale-robot added the kind/feature Categorizes issue or PR as related to a new feature. label Nov 20, 2023
@3scale-robot 3scale-robot added the priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple sprints to complete. label Nov 20, 2023
@3scale-robot 3scale-robot added needs-size Indicates a PR or issue lacks a `size/foo` label and requires one. size/L Requires few days to complete the PR or the issue. and removed needs-size Indicates a PR or issue lacks a `size/foo` label and requires one. labels Nov 20, 2023
@3scale-robot 3scale-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 21, 2023
@3scale-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 2cdd2a7c669da8c469a793f356263f17ca47d73d

@slopezz
Copy link
Member

slopezz commented Nov 21, 2023

@roivaz can you please rebase?

@roivaz roivaz force-pushed the backups/tag-on-upload branch from 10cfe34 to 742d6e5 Compare November 21, 2023 09:46
@3scale-robot 3scale-robot removed the lgtm Indicates that a PR is ready to be merged. label Nov 21, 2023
@3scale-robot 3scale-robot requested a review from slopezz November 21, 2023 09:46
@3scale-robot 3scale-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 21, 2023
@3scale-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 3c0ca9c05c934a5b7edeb681084e943eaeda7788

@raelga
Copy link
Contributor

raelga commented Nov 21, 2023

/lgtm

@roivaz
Copy link
Member Author

roivaz commented Nov 21, 2023

/approve

@3scale-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: roivaz

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@3scale-robot 3scale-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 21, 2023
@3scale-robot 3scale-robot merged commit 6f368b3 into main Nov 21, 2023
5 checks passed
@3scale-robot 3scale-robot deleted the backups/tag-on-upload branch November 21, 2023 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/feature Categorizes issue or PR as related to a new feature. lgtm Indicates that a PR is ready to be merged. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple sprints to complete. size/L Requires few days to complete the PR or the issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants