-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from cultureamp/jasono/kafkactl
Start installing various Kafka CLI tools in ca-kafka-local plugin
- Loading branch information
Showing
7 changed files
with
87 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
# The Kaf tool doesn't allow setting the config file path via an environment variable. | ||
# This script is a workaround to set the config file path via the `--config` argument. | ||
|
||
KAF_BINARY="$DEVBOX_PACKAGES_DIR/bin/kaf" | ||
|
||
if [[ ! -f "$KAF_BINARY" ]]; then | ||
echo "Error: $KAF_BINARY was not found in devbox packages." | ||
exit 1 | ||
fi | ||
|
||
# Call the kaf binary with the `--config` argument and add all passed arguments | ||
"$KAF_BINARY" --config "$KAF_CONFIG_PATH" "$@" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
current-cluster: local | ||
clusters: | ||
- name: local | ||
brokers: | ||
- ${KAFKA_BROKERS_SASL} | ||
SASL: | ||
mechanism: SCRAM-SHA-512 | ||
username: ${KAFKA_SASL_USER} | ||
password: ${KAFKA_SASL_PASSWORD} | ||
security-protocol: SASL_PLAINTEXT |
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,19 @@ | ||
# See https://github.com/deviceinsight/kafkactl?tab=readme-ov-file#configuration | ||
contexts: | ||
local: | ||
brokers: | ||
- ${KAFKA_BROKERS_SASL} | ||
|
||
tls: | ||
enabled: false | ||
|
||
sasl: | ||
enabled: true | ||
username: ${KAFKA_SASL_USER} | ||
password: ${KAFKA_SASL_PASSWORD} | ||
mechanism: scram-sha512 | ||
|
||
avro: | ||
schemaRegistry: ${SCHEMA_REGISTRY_URL} | ||
|
||
current-context: local |
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,5 @@ | ||
bootstrap.servers=${KAFKA_BROKERS_SASL} | ||
security.protocol=SASL_PLAINTEXT | ||
sasl.mechanisms=SCRAM-SHA-512 | ||
sasl.username=${KAFKA_SASL_USER} | ||
sasl.password=${KAFKA_SASL_PASSWORD} |
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