From d39b315f31c15db54ce750cd65461dc56b50ab69 Mon Sep 17 00:00:00 2001 From: JF Ding Date: Tue, 6 Aug 2024 15:50:53 +0000 Subject: [PATCH] update update_manifests scripts accordingly since the manifests folder re-org and cleanup, and the script itself was moved to helm-charts/ as well Signed-off-by: JF Ding --- helm-charts/update_manifests.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/helm-charts/update_manifests.sh b/helm-charts/update_manifests.sh index ab3b3e54a..0d846b9a0 100755 --- a/helm-charts/update_manifests.sh +++ b/helm-charts/update_manifests.sh @@ -4,7 +4,7 @@ # SPDX-License-Identifier: Apache-2.0 CUR_DIR=$(cd $(dirname "$0") && pwd) -OUTPUTDIR=${CUR_DIR}/common +OUTPUTDIR=${CUR_DIR}/../microservices-connector/config/manifests # # generate_yaml @@ -13,18 +13,18 @@ function generate_yaml { chart=$1 outputdir=$2 - helm template $chart ../helm-charts/common/$chart --skip-tests --values ../helm-charts/common/$chart/values.yaml --set global.extraEnvConfig=extra-env-config,noProbe=true > ${outputdir}/$chart.yaml + helm template $chart ./common/$chart --skip-tests --values ./common/$chart/values.yaml --set global.extraEnvConfig=extra-env-config,noProbe=true > ${outputdir}/$chart.yaml - for f in `ls ../helm-charts/common/$chart/*-values.yaml 2>/dev/null `; do + for f in `ls ./common/$chart/*-values.yaml 2>/dev/null `; do ext=$(basename $f | cut -d'-' -f1) - helm template $chart ../helm-charts/common/$chart --skip-tests --values ${f} --set global.extraEnvConfig=extra-env-config,noProbe=true > ${outputdir}/${chart}_${ext}.yaml + helm template $chart ./common/$chart --skip-tests --values ${f} --set global.extraEnvConfig=extra-env-config,noProbe=true > ${outputdir}/${chart}_${ext}.yaml done } mkdir -p $OUTPUTDIR -${CUR_DIR}/../helm-charts/update_dependency.sh +${CUR_DIR}/update_dependency.sh cd $CUR_DIR -for chart in ${CUR_DIR}/../helm-charts/common/* +for chart in ${CUR_DIR}/common/* do chartname=`basename $chart` echo "Update manifest for $chartname..." @@ -33,4 +33,4 @@ done # we need special version of docsum-llm-uservice echo "Update manifest for docsum-llm-uservice..." -helm template docsum ../helm-charts/common/llm-uservice --skip-tests --set global.extraEnvConfig=extra-env-config,noProbe=true,image.repository=opea/llm-docsum-tgi:latest > ${OUTPUTDIR}/docsum-llm-uservice.yaml +helm template docsum ./common/llm-uservice --skip-tests --set global.extraEnvConfig=extra-env-config,noProbe=true,image.repository=opea/llm-docsum-tgi:latest > ${OUTPUTDIR}/docsum-llm-uservice.yaml