From ab5a99bd2655d742e1725c96102d6654ed3bb6d9 Mon Sep 17 00:00:00 2001 From: Yanjun Zhou Date: Mon, 16 Oct 2023 15:30:56 -0700 Subject: [PATCH] Change ClickHouse volume ownership Signed-off-by: Yanjun Zhou --- build/charts/theia/templates/_helpers.tpl | 4 ++++ build/yamls/flow-visibility.yml | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/build/charts/theia/templates/_helpers.tpl b/build/charts/theia/templates/_helpers.tpl index a8b4c775..8c847a70 100644 --- a/build/charts/theia/templates/_helpers.tpl +++ b/build/charts/theia/templates/_helpers.tpl @@ -46,6 +46,10 @@ - name: clickhouse image: {{ include "clickHouseServerImage" . | quote }} imagePullPolicy: {{ $clickhouse.image.pullPolicy }} + command: + - /bin/sh + - -c + - chown -R clickhouse:clickhouse /var/lib/clickhouse && /entrypoint.sh volumeMounts: - name: clickhouse-configmap-volume mountPath: /docker-entrypoint-initdb.d diff --git a/build/yamls/flow-visibility.yml b/build/yamls/flow-visibility.yml index 47ce15a5..1aec0ddb 100644 --- a/build/yamls/flow-visibility.yml +++ b/build/yamls/flow-visibility.yml @@ -7238,7 +7238,11 @@ spec: type: MaxNumberPerNode spec: containers: - - env: + - command: + - /bin/sh + - -c + - chown -R clickhouse:clickhouse /var/lib/clickhouse && /entrypoint.sh + env: - name: THEIA_VERSION value: 0.8.0 - name: CLICKHOUSE_INIT_TIMEOUT