Skip to content

Commit f1a9a0a

Browse files
authored
docs: fix swapped Kafka/Druid examples (#1050)
1 parent 2e5f7bd commit f1a9a0a

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

docs/modules/zookeeper/pages/usage_guide/isolating_clients_with_znodes.adoc

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ For Kafka:
7777
----
7878
---
7979
apiVersion: kafka.stackable.tech/v1alpha1
80-
kind: DruidCluster
80+
kind: KafkaCluster
8181
metadata:
82-
name: my-druid
83-
namespace: druid-ns
82+
name: my-kafka
83+
namespace: data
8484
spec:
8585
zookeeperConfigMapName: kafka-znode
8686
...
@@ -91,13 +91,13 @@ And for Druid:
9191
[source,yaml]
9292
----
9393
---
94-
apiVersion: kafka.stackable.tech/v1alpha1
95-
kind: KafkaCluster
94+
apiVersion: druid.stackable.tech/v1alpha1
95+
kind: DruidCluster
9696
metadata:
97-
name: my-kafka
98-
namespace: data
97+
name: my-druid
98+
namespace: druid-ns
9999
spec:
100-
zookeeperConfigMapName: kafka-znode
100+
zookeeperConfigMapName: druid-znode
101101
...
102102
----
103103

@@ -109,7 +109,8 @@ You can find out more about the discovery ConfigMap xref:discovery.adoc[] and th
109109

110110
== Restoring from backups
111111

112-
For security reasons, a unique ZNode path is generated every time the same ZookeeperZnode object is recreated, even if it has the same name.
112+
A unique ZNode path is generated every time the same ZookeeperZnode object is recreated, even if it has the same name.
113+
This prevents a recreated (or maliciously re-created) object from taking over the ZNode and data of a previous object with the same name.
113114

114115
If a ZookeeperZnode needs to be associated with an existing ZNode path, the field `status.znodePath` can be set to the desired path.
115116
Note that since this is a subfield of `status`, it must explicitly be updated on the `status` subresource, and requires RBAC permissions to replace the `zookeeperznodes/status` resource.

0 commit comments

Comments
 (0)