-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Configure Redpanda via `.bootstrap.yml` and `redpanda.yml` * Allow to enable authorization and authentication methods * Allow to add additional listeners. E.g. using it with toxiproxy or redpanda console * Enable rest proxy * Configure rpk Fixes #6395 --------- Co-authored-by: Kevin Wittek <kiview@users.noreply.github.com>
- Loading branch information
1 parent
d48bab7
commit f5471c8
Showing
7 changed files
with
562 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
modules/redpanda/src/main/resources/testcontainers/bootstrap.yaml.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Injected by testcontainers | ||
# This file contains cluster properties which will only be considered when | ||
# starting the cluster for the first time. Afterwards, you can configure cluster | ||
# properties via the Redpanda Admi n API. | ||
superusers: | ||
<#if kafkaApi.superusers?has_content > | ||
<#list kafkaApi.superusers as superuser> | ||
- ${superuser} | ||
</#list> | ||
<#else> | ||
[] | ||
</#if> | ||
|
||
<#if kafkaApi.enableAuthorization > | ||
kafka_enable_authorization: true | ||
</#if> | ||
|
||
auto_create_topics_enabled: true |
8 changes: 8 additions & 0 deletions
8
modules/redpanda/src/main/resources/testcontainers/entrypoint-tc.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Wait for testcontainer's injected redpanda config with the port only known after docker start | ||
until grep -q "# Injected by testcontainers" "/etc/redpanda/redpanda.yaml" | ||
do | ||
sleep 0.1 | ||
done | ||
exec /entrypoint.sh $@ |
Oops, something went wrong.