This is an automated email from the ASF dual-hosted git repository. dockerzhang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/inlong.git
The following commit(s) were added to refs/heads/master by this push: new 252c2a6d3 [INLONG-6073][Kubernetes] Add audit.config.store.mode configurable to k8s (#6074) 252c2a6d3 is described below commit 252c2a6d383a654a930647439e450245851cc378 Author: Lucas <100204617+lucaspeng12...@users.noreply.github.com> AuthorDate: Mon Oct 10 17:36:22 2022 +0800 [INLONG-6073][Kubernetes] Add audit.config.store.mode configurable to k8s (#6074) --- inlong-audit/audit-docker/audit-docker.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/inlong-audit/audit-docker/audit-docker.sh b/inlong-audit/audit-docker/audit-docker.sh index c7ff207b2..bc537342b 100755 --- a/inlong-audit/audit-docker/audit-docker.sh +++ b/inlong-audit/audit-docker/audit-docker.sh @@ -38,6 +38,19 @@ if [ "${MQ_TYPE}" = "tubemq" ]; then sed -i "s/agent1.sinks.tube-sink-msg1.master-host-port-list = .*$/agent1.sinks.tube-sink-msg1.master-host-port-list = ${TUBE_MASTER_LIST}/g" "${proxy_conf_file}" sed -i "s/agent1.sinks.tube-sink-msg2.master-host-port-list = .*$/agent1.sinks.tube-sink-msg2.master-host-port-list = ${TUBE_MASTER_LIST}/g" "${proxy_conf_file}" fi +if [ -n "${STORE_MODE}" ]; then + sed -i "s/audit.config.store.mode=.*$/audit.config.store.mode=${STORE_MODE}/g" "${store_conf_file}" +fi + +sed -i "s/clickhouse.url=.*$/clickhouse.url=${STORE_CK_URL}/g" "${store_conf_file}" +sed -i "s/clickhouse.username=.*$/clickhouse.username=${STORE_CK_USERNAME}/g" "${store_conf_file}" +sed -i "s/clickhouse.password=.*$/clickhouse.password=${STORE_CK_PASSWD}/g" "${store_conf_file}" + +sed -i "s/elasticsearch.host=.*$/elasticsearch.host=${STORE_ES_HOST}/g" "${store_conf_file}" +sed -i "s/elasticsearch.port=.*$/elasticsearch.port=${STORE_ES_PORT}/g" "${store_conf_file}" +sed -i "s/elasticsearch.authEnable=.*$/elasticsearch.authEnable=${STORE_ES_AUTHENABLE}/g" "${store_conf_file}" +sed -i "s/elasticsearch.username=.*$/elasticsearch.username=${STORE_ES_USERNAME}/g" "${store_conf_file}" +sed -i "s/elasticsearch.password=.*$/elasticsearch.password=${STORE_ES_PASSWD}/g" "${store_conf_file}" # Whether the database table exists. If it does not exist, initialize the database and skip if it exists. if [[ "${JDBC_URL}" =~ (.+):([0-9]+) ]]; then