We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0869ba9 commit aa9a1adCopy full SHA for aa9a1ad
1 file changed
modules/kafka/testcontainers/kafka/__init__.py
@@ -31,6 +31,10 @@ class KafkaContainer(DockerContainer):
31
32
>>> with KafkaContainer() as kafka:
33
... connection = kafka.get_bootstrap_server()
34
+
35
+ # Using KRaft protocol
36
+ >>> with KafkaContainer().with_kraft() as kafka:
37
+ ... connection = kafka.get_bootstrap_server()
38
"""
39
40
TC_START_SCRIPT = "/tc-start.sh"
0 commit comments