Repository navigation
Support tenant and namespace - #206
Conversation
|
Mark the PR as WIP because the unit test failure of Besides, a unit test for topics in different namespaces needs to be added. |
6b8d485 to
6f5e591
Compare
|
overall looks good, left some comments. |
There's one point that the configuration and authentication docs are both in StreamNative website, which is recorded in the private repository. Should we also add some docs to this repository? |
there were README.md and DEVELOP.md in this repo. once this is added, we could change the repo of StreamNative website |
|
Changes have been done, PTAL, @jiazhai |
Currently KoP only support produce or consume topics in the configured namespace by
kafkaTenantandkafkaNamespace. If we want to make use of Pulsar's multi-tenancy, we need to enable SASL authentication and encode the namespace info into thesasl.jaas.configproperty.This PR is to use Pulsar topic name as Kafka topic name, the topic mapping from topic in Kafka client to the real Pulsar topic is:
persistent://<kafkaTenant>/<kafkaNamespace>/my-topicpersistent://my-tenant/my-ns/my-topicThis work is done by the new added
KopTopic.Besides, if client want to fetch the metadata of all topics, before this PR, only the topics of
<kafkaTenant>/<kafkaNamespace>would be returned, now the topics of all namespaces would be returned.Following unit tests are added:
KopTopicTest: test the basic functions ofKopTopic;DifferentNamespaceTest: test the newly supported topic name version to specify a custom namespace