Skip to content

Commit 040e8b3

Browse files
committed
feat(docs): add opencost integration
Signed-off-by: Hristo Hristov <me@hhristov.info>
1 parent 0d0bbb3 commit 040e8b3

1 file changed

Lines changed: 20 additions & 1 deletion

File tree

content/en/docs/tenants/enforcement.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,26 @@ description: >
1111
### Namespaces
1212

1313
#### 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+
```
1534
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:
1635
1736
```yaml

0 commit comments

Comments
 (0)