From 529f6f695b9c6bcbbf1c3a4b72a285cddc9942ba Mon Sep 17 00:00:00 2001 From: Yu Sun Date: Sat, 8 Oct 2022 10:19:41 +0800 Subject: [PATCH] =?UTF-8?q?fix(auth):timescaledb=E7=9A=84passfile=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E5=A4=8D=E7=94=A8pg=E7=9A=84=EF=BC=8C=E4=BD=86?= =?UTF-8?q?=E9=9C=80=E8=A6=81=E5=8F=82=E6=95=B0=E6=8C=87=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- charts/templates/job-attach-datanode.yaml | 2 +- charts/values.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/charts/templates/job-attach-datanode.yaml b/charts/templates/job-attach-datanode.yaml index 10e6b82..962a965 100644 --- a/charts/templates/job-attach-datanode.yaml +++ b/charts/templates/job-attach-datanode.yaml @@ -64,7 +64,7 @@ https://www.postgresql.org/docs/current/app-psql.html#APP-PSQL-INTERPOLATION value: | \c :"dbname" SELECT * - FROM add_data_node(:'data_node_name'::name, host => :'data_node_dns', if_not_exists => true, password => 'big_dick') + FROM add_data_node(:'data_node_name'::name, host => :'data_node_dns', if_not_exists => true) - name: PGPASSWORD valueFrom: secretKeyRef: diff --git a/charts/values.yaml b/charts/values.yaml index e92010c..b6514ee 100644 --- a/charts/values.yaml +++ b/charts/values.yaml @@ -77,6 +77,7 @@ postgresql: min_wal_size: 256MB max_wal_size: 512MB temp_file_limit: 1GB + timescaledb.passfile: '/var/lib/postgresql/.pgpass' # https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector nodeSelector: {}