Skip to content

Commit 162e01a

Browse files
committed
fix(docs): typo in name of created resource with tenantreplication
Signed-off-by: sandert-k8s <[email protected]>
1 parent 5b8b98e commit 162e01a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

content/en/docs/replications/_index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ The Namespaced-scope API TenantResource allows to replicate resources across the
7171
7272
The Tenant owners must have proper RBAC configured in order to create, get, update, and delete their TenantResource CRD instances. This can be achieved using the Tenant key additionalRoleBindings or a custom Tenant owner role, compared to the default one (admin). You can for example create this clusterrole, which will aggregate to the admin role, to allow the Tenant Owner to create TenantResource objects. This allows all users with the rolebinding to `admin` to create TenantResource objects.
7373

74-
```yaml
74+
```yaml
7575
apiVersion: rbac.authorization.k8s.io/v1
7676
kind: ClusterRole
7777
metadata:
7878
name: allow-tenant-resources
79-
labels:
79+
labels:
8080
rbac.authorization.k8s.io/aggregate-to-admin: "true"
8181
rules:
8282
- apiGroups: ["capsule.clastix.io"]
@@ -107,7 +107,7 @@ spec:
107107
resources:
108108
- additionalMetadata:
109109
labels:
110-
"replicated-by": "capsule"
110+
"replicated-by": "capsule"
111111
namespaceSelector:
112112
matchLabels:
113113
environment: production
@@ -131,9 +131,9 @@ The expected result will be the object Cluster for the API version postgresql.cn
131131

132132
```bash
133133
$ kubectl get clusters.postgresql.cnpg.io -A
134-
NAMESPACE NAME AGE INSTANCES READY STATUS PRIMARY
135-
solar-1 postgresql 80s 3 3 Cluster in healthy state postgresql-1
136-
solar-2 postgresql 80s 3 3 Cluster in healthy state postgresql-1
134+
NAMESPACE NAME AGE INSTANCES READY STATUS PRIMARY
135+
solar-1 postgres-solar-1 80s 3 3 Cluster in healthy state postgresql-1
136+
solar-2 postgres-solar-2 80s 3 3 Cluster in healthy state postgresql-1
137137
```
138138

139139
The TenantResource object has been created in the namespace `solar-system` that doesn't satisfy the Namespace selector. Furthermore, Capsule will automatically inject the required labels to avoid a `TenantResource` could start polluting other Namespaces.

0 commit comments

Comments
 (0)