[bitnami/kafka] Append zookeeperChrootPath when using external zookeeper. (#9990)

* Append zookeeperChrootPath when using external zookeeper.

When using an external zookeeper, it's important to use a
root path where kafka keeps its data. There is a zookeeperChrootPath value, but it was ignored when using externalZookeeper.servers.

Signed-off-by: Geert Pante <geertp@ngdata.com>

* [bitnami/kafka] Bump to 16.2.10

Signed-off-by: Geert Pante <geertp@ngdata.com>
This commit is contained in:
Geert Pante
2022-05-04 11:55:25 +02:00
committed by GitHub
parent 23f291a6b7
commit 13eaa3fdfd
4 changed files with 4 additions and 4 deletions

View File

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

View File

@@ -455,7 +455,7 @@ The command removes all the Kubernetes components associated with the chart and
| `zookeeper.persistence.storageClass` | Persistent Volume storage class | `""` |
| `zookeeper.persistence.accessModes` | Persistent Volume access modes | `["ReadWriteOnce"]` |
| `zookeeper.persistence.size` | Persistent Volume size | `8Gi` |
| `externalZookeeper.servers` | List of external zookeeper servers to use | `[]` |
| `externalZookeeper.servers` | List of external zookeeper servers to use. Typically used in combination with 'zookeeperChrootPath'. | `[]` |
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,

View File

@@ -181,7 +181,7 @@ spec:
{{- if .Values.zookeeper.enabled }}
value: {{ printf "%s%s" (include "kafka.zookeeper.fullname" .) (tpl .Values.zookeeperChrootPath .) | quote }}
{{- else }}
value: {{ include "common.tplvalues.render" (dict "value" (join "," .Values.externalZookeeper.servers) "context" $) }}
value: {{ include "common.tplvalues.render" (dict "value" (printf "%s%s" (join "," .Values.externalZookeeper.servers) (tpl .Values.zookeeperChrootPath .)) "context" $) }}
{{- end }}
- name: KAFKA_INTER_BROKER_LISTENER_NAME
value: {{ .Values.interBrokerListenerName | quote }}

View File

@@ -1616,6 +1616,6 @@ zookeeper:
## All of these values are only used if `zookeeper.enabled=false`
##
externalZookeeper:
## @param externalZookeeper.servers List of external zookeeper servers to use
## @param externalZookeeper.servers List of external zookeeper servers to use. Typically used in combination with 'zookeeperChrootPath'.
##
servers: []