Skip to content

Commit

Permalink
use correct REDPANDA_ADVERTISE_KAFKA_ADDRESS for internal and external
Browse files Browse the repository at this point in the history
clients.

Signed-off-by: Roman Dmytrenko <[email protected]>
  • Loading branch information
erka committed Jul 2, 2024
1 parent a0ecc19 commit 6b7e8f5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions build/testing/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,13 @@ func Unit(ctx context.Context, client *dagger.Client, flipt *dagger.Container) e
WithExposedPort(8081, dagger.ContainerWithExposedPortOpts{
Description: "schema registry endpoint",
}).
WithEnvVariable("REDPANDA_ADVERTISE_KAFKA_ADDRESS", "kafka-1:9092").
WithEnvVariable("REDPANDA_KAFKA_ADDRESS", "internal://127.0.0.1:29092,external://0.0.0.0:9092").
WithEnvVariable("REDPANDA_ADVERTISE_KAFKA_ADDRESS", "internal://localhost:29092,external://kafka:9092").
WithExec(nil).
AsService()
flipt = flipt.
WithEnvVariable("KAFKA_BOOTSTRAP_SERVER", "kafka-1").
WithServiceBinding("kafka-1", kafka)
WithEnvVariable("KAFKA_BOOTSTRAP_SERVER", "kafka").
WithServiceBinding("kafka", kafka)

if goFlags := os.Getenv("GOFLAGS"); goFlags != "" {
flipt = flipt.WithEnvVariable("GOFLAGS", goFlags)
Expand Down

0 comments on commit 6b7e8f5

Please sign in to comment.