Skip to content

Commit

Permalink
update update_manifests scripts accordingly
Browse files Browse the repository at this point in the history
since the manifests folder re-org and cleanup, and
the script itself was moved to helm-charts/ as well

Signed-off-by: JF Ding <jian-feng.ding@intel.com>
  • Loading branch information
jfding committed Aug 6, 2024
1 parent 8725ed4 commit d39b315
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions helm-charts/update_manifests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 <chart> <outputdir>
Expand All @@ -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..."
Expand All @@ -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

0 comments on commit d39b315

Please sign in to comment.