Skip to content

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


## 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
@eddumelendez eddumelendez deleted the confluent-kafka branch August 23, 2024 18:03
fokion pushed a commit to fokion/testcontainers-java that referenced this pull request Jan 18, 2025
* 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`

---------

Co-authored-by: Kevin Wittek <kiview@users.noreply.github.com>
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