You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/tenants/enforcement.md
+20-1Lines changed: 20 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,26 @@ description: >
11
11
### Namespaces
12
12
13
13
#### AdditionalMetadataList
14
-
14
+
{{% alert title="Information" color="info" %}}
15
+
Starting from v0.10.8, it is possible to use templated values for labels and annotations.
16
+
Currently, `{{ tenant.name }}` and `{{ namespace }}` placeholders are available.
17
+
{{% /alert %}}
18
+
```yaml
19
+
apiVersion: capsule.clastix.io/v1beta2
20
+
kind: Tenant
21
+
metadata:
22
+
name: solar
23
+
spec:
24
+
owners:
25
+
- name: alice
26
+
kind: User
27
+
namespaceOptions:
28
+
additionalMetadataList:
29
+
- annotations:
30
+
templated-annotation: {{ tenant.name }}
31
+
labels:
32
+
templated-label: {{ namespace }}
33
+
```
15
34
The cluster admin can "taint" the namespaces created by tenant owners with additional metadata as labels and annotations. There is no specific semantic assigned to these labels and annotations: they will be assigned to the namespaces in the tenant as they are created. However you have the option to be more specific by selecting to which namespaces you want to assign what kind of metadata:
0 commit comments