From cbc374e8e0258e9e07df503e46895f9c98bec1d5 Mon Sep 17 00:00:00 2001 From: Maksim Fedotov Date: Mon, 16 May 2022 23:42:30 +0300 Subject: [PATCH] docs: documenting protected tenants annotation --- docs/content/general/tutorial.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/docs/content/general/tutorial.md b/docs/content/general/tutorial.md index d82e77dd1..d1a0d5f52 100644 --- a/docs/content/general/tutorial.md +++ b/docs/content/general/tutorial.md @@ -1661,6 +1661,26 @@ EOF >* v1.20.6 >* v1.21.0 +## Protecting tenants from deletion + +Sometimes it is important to protect business critical tenants from accidental deletion. +This can be achieved by adding `capsule.clastix.io/protected` annotation on the tenant: + +```yaml +kubectl apply -f - << EOF +apiVersion: capsule.clastix.io/v1beta1 +kind: Tenant +metadata: + name: oil + annotations: + capsule.clastix.io/protected: "" +spec: + owners: + - name: alice + kind: User +EOF +``` + --- This ends our tutorial on how to implement complex multi-tenancy and policy-driven scenarios with Capsule. As we improve it, more use cases about multi-tenancy, policy admission control, and cluster governance will be covered in the future.