Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ConfluentKafkaContainer #9139

Merged
merged 8 commits into from
Aug 23, 2024
Merged

Add ConfluentKafkaContainer #9139

merged 8 commits into from
Aug 23, 2024

Conversation

eddumelendez
Copy link
Member

  • Deprecate org.testcontainers.containers.KafkaContainer
  • Add org.testcontainers.kafka.ConfluentKafkaContainer which works with confluentinc/cp-kafka images with version 7.4.0 or later.
  • KafkaHelper container common env vars, command, wait strategy to be shared with org.testcontainers.kafka.KafkaContainer

docs/modules/kafka.md Outdated Show resolved Hide resolved
## Benefits

* Running a single node Kafka installation with just one line of code
* No need to manage external Zookeeper installation, required by Kafka. But see [below](#zookeeper)

## Example

### Using org.testcontainers.containers.KafkaContainer
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we replace this documentation sections with org.testcontainers.kafka.KafkaContainer as well? I think accordingly, we can even remove the docs for the deprecated version.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For those interested in kafka and zookeeper, this could be helpful. Otherwise, it would look like it is not supported.

Comment on lines +62 to +65
!!! note
Only available for `org.testcontainers.containers.KafkaContainer`

KRaft mode was declared production ready in 3.3.1 (confluentinc/cp-kafka:7.3.x)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Related to above, I think we then can remove docs for the deprecated class.

eddumelendez and others added 3 commits August 22, 2024 10:52
Co-authored-by: Kevin Wittek <kiview@users.noreply.github.com>
@eddumelendez eddumelendez added this to the next milestone Aug 23, 2024
@eddumelendez eddumelendez merged commit ba22a7b into main Aug 23, 2024
102 checks passed
@eddumelendez eddumelendez deleted the confluent-kafka branch August 23, 2024 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants