Skip to content

Support restoring a snapshot from an AWS S3 bucket with an endpoint URL - #889

Merged
plaharanne merged 1 commit into
masterfrom
p/restore-stackit-snapshot
Aug 25, 2026
Merged

Support restoring a snapshot from an AWS S3 bucket with an endpoint URL#889
plaharanne merged 1 commit into
masterfrom
p/restore-stackit-snapshot

Conversation

@plaharanne

@plaharanne plaharanne commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

Summary of changes

Support restoring a snapshot from an S3-compatible bucket with a custom endpoint URL.
Previously the endpoint_url was ignored.

Checklist

  • Link to issue this PR refers to: https://github.com/crate/cloud/issues/3049
  • Relevant changes are reflected in CHANGES.rst
  • Added or changed code is covered by tests
  • Documentation has been updated if necessary
  • Changed code does not contain any breaking changes (or this is a major version change)

@plaharanne
plaharanne requested a review from juanpardo August 23, 2026 09:54

@juanpardo juanpardo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approved it but added a small question :P

except KeyError:
raise kopf.PermanentError(f"Key {key} not found in secret.")
if BackupRepositoryData.is_optional(backup_provider, key):
data_dict[key] = ""

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is the entry really needed at all?
If so, perhaps a None would make more sense than an empty string, if it's allowed.
Otherwise, I would not add the key.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It is to keep in consistent with the other fields of AwsBackupRepositoryData that have type str and not Optional[str]

@plaharanne
plaharanne merged commit 13743ec into master Aug 25, 2026
16 checks passed
@plaharanne
plaharanne deleted the p/restore-stackit-snapshot branch August 25, 2026 06:51
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.

2 participants