bitnami/kafka Fix Upgrade regression from PR #4683 (#5073)

This commit is contained in:
Louis Turmel
2021-01-19 04:22:58 -05:00
committed by GitHub
parent 7fc4bb1861
commit 7baeea1cb6
2 changed files with 2 additions and 2 deletions

View File

@@ -29,4 +29,4 @@ name: kafka
sources:
- https://github.com/bitnami/bitnami-docker-kafka
- https://kafka.apache.org/
version: 12.6.0
version: 12.6.1

View File

@@ -71,10 +71,10 @@ data:
setup.sh: |-
#!/bin/bash
ID="${MY_POD_NAME#"{{ $fullname }}-"}"
if [[ -f "/bitnami/kafka/data/meta.properties" ]]; then
export KAFKA_CFG_BROKER_ID="$(grep "broker.id" /bitnami/kafka/data/meta.properties | awk -F '=' '{print $2}')"
else
ID="${MY_POD_NAME#"{{ $fullname }}-"}"
export KAFKA_CFG_BROKER_ID="$((ID + {{ .Values.minBrokerId }}))"
fi