Skip to content

Commit

Permalink
docs: documenting protected tenants annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
Maksim Fedotov committed May 16, 2022
1 parent d027887 commit cbc374e
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/content/general/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit cbc374e

Please sign in to comment.