From bfbb3a327e780ebee0e67f497f4a1f8198fa5f04 Mon Sep 17 00:00:00 2001
From: jinyuan <liujinyuan@inspur.com>
Date: Fri, 5 Mar 2021 15:54:24 +0800
Subject: [PATCH] Lint and package chart About postgresql

Without this "make",It can lead to not being found <helm-toolkit> when running this script.

Change-Id: I78447080e7b8b122c67f351ae5c82f03a1f591f9
---
 tools/deployment/multinode/210-postgresql.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tools/deployment/multinode/210-postgresql.sh b/tools/deployment/multinode/210-postgresql.sh
index 14a417bcf0..d618dddacb 100755
--- a/tools/deployment/multinode/210-postgresql.sh
+++ b/tools/deployment/multinode/210-postgresql.sh
@@ -13,6 +13,11 @@
 #    under the License.
 set -xe
 
+export HELM_CHART_ROOT_PATH="${HELM_CHART_ROOT_PATH:="${OSH_INFRA_PATH:="../openstack-helm-infra"}"}"
+
+#NOTE: Lint and package chart
+make -C ${HELM_CHART_ROOT_PATH} postgresql
+
 #NOTE: Wait for deploy
 : ${OSH_INFRA_PATH:="../openstack-helm-infra"}
 helm upgrade --install postgresql ${OSH_INFRA_PATH}/postgresql \