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

Warn users regarding bucket deletion #92

Merged
merged 1 commit into from
Oct 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/modules/ROOT/pages/object-storage/delete.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ $ oc delete objectbucket my-bucket

By default, deleting the `ObjectBucket` will also recursively delete all objects within it and the bucket itself.

To prevent that, there's a `deletionPolicy` called `DeletIfEmpty`. As the name suggests, it will then only delete the bucket if it's empty. However, you will still lose access to the data. If you've deleted a bucket by mistake and had the `DeletIfEmpty` policy set, please contact support@vshn.ch and we will help you get your data back.
To prevent that, there's a `deletionPolicy` called `DeleteIfEmpty`. As the name suggests, it will then only delete the bucket if it's empty. However, you will still lose access to the data. If you've deleted a bucket by mistake and had the `DeletIfEmpty` policy set, please contact support@vshn.ch and we will help you get your data back.

.Example
[source,yaml]
Expand All @@ -27,3 +27,5 @@ spec:
region: ch-gva-2
bucketDeletionPolicy: DeleteIfEmpty
----

IMPORTANT: Before deleting an ObjectBucket with deletion policy `DeleteIfEmpty` be sure to remove all data from the bucket itself. Failing to do so may incur additional costs due to bucket not being effectively deleted. Please contact support@vshn.ch for further assistance.