Skip to content

Commit

Permalink
Load the pulsar env as the program start options (#1111)
Browse files Browse the repository at this point in the history
---

### Motivation

When enable tls for the zookeeper, it will write the TLS properties with
PULSAR_EXTRA_OPTS as the key into the pulsar-env.sh file. The metadata tool
also needs the PULSAR_EXTRA_OPTS to get the zookeeper TLS configurations.
So import the PULSAR_EXTRA_OPTS into the OPTS to load the zookeeper TLS
configuration.

(cherry picked from commit b2c64d8)
  • Loading branch information
zymap authored and ericsyh committed Oct 16, 2023
1 parent 3a3b935 commit 8987bd6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ spec:
{{- include "pulsar.toolset.zookeeper.tls.settings" . | nindent 12 }}
{{ if and .Values.tls.enabled .Values.tls.zookeeper.enabled }}
export "$(cat conf/pulsar_env.sh | xargs)";
export "OPTS=${EXTRA_OPTS}";
export OPTS="${PULSAR_EXTRA_OPTS} ${EXTRA_OPTS}";
env;
{{- end }}
bin/pulsar-metadata-tool cleanup
Expand Down

0 comments on commit 8987bd6

Please sign in to comment.