Skip to content

Conversation

@KastenMike
Copy link
Contributor

@KastenMike KastenMike commented Sep 26, 2024

It seems not possible to create a PR train in this repo. I created 1 PR but the base only shows me master or providers. So instead it's broken down by commits.

Put/Extend commit: Adds ExtendBlobRetention and removes the ErrUnsupportedPutBlobOption check from PutBlob. Also some slight refactorings to make it more like azure_storage.go and tweak to support getting a blob by its versionID.

PITR commit: Code is largely identical to azure_ and s3_ equivalents. Based on @kreare's #3564 but more complete.

Tests commit:
gcs_immu_test.go and gcs_versioned_test.go are basically identical to azure_ equivalents. Only createBucket is a bit different based on Google client. Tweaked gcs_storage_test.go slightly to make it more like the az/s3 ones with consts for env vars

Requires variables setting to create/use the new bucket

Ref:

@julio-lopez julio-lopez changed the title feat(repository): Google Immutability feat(providers): GCS immutability Sep 27, 2024
@julio-lopez julio-lopez enabled auto-merge (squash) September 27, 2024 04:43
Copy link
Collaborator

@julio-lopez julio-lopez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@KastenMike
🥇 Thanks for doing this.
👍 Looks good: ➕1

@julio-lopez julio-lopez merged commit 1bceb71 into kopia:master Sep 27, 2024
@kreare
Copy link

kreare commented Oct 6, 2024

thank you so much for this

@kreare
Copy link

kreare commented Oct 6, 2024

i think docs should be fixed, the first part say that GCS doesn't support the needed features but thats not true anymore (they are still not supported if using the S3 compatibility mode, but the native GCS supports everything we need)

Screenshot_2024-10-06-20-04-23-646_com android chrome-edit

@KastenMike
Copy link
Contributor Author

i think docs should be fixed, the first part say that GCS doesn't support the needed features but thats not true anymore (they are still not supported if using the S3 compatibility mode, but the native GCS supports everything we need)

Ah I missed that part of the docs when I did a docs tweak. But #4151 needs merging for it to fully work

alvistar pushed a commit to alvistar/kopia that referenced this pull request Oct 29, 2024
- Allow blob `Put/ExtendBlobRetention`
- PITR support
- PITR/versioning tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants