3 if [ "$#" -ne 2 ]; then
4 echo This script updates OOM helm charts to use versions in docker-manifest.csv
5 echo "$0 <docker-manifest.csv> <oom repo directory>"
10 MANIFEST=$(realpath $1)
11 OOM_DIR=$(realpath $2)
13 if [ -z "$WORKSPACE" ]; then
14 export WORKSPACE=`git rev-parse --show-toplevel`
17 cd $OOM_DIR/kubernetes
19 for line in $(tail -n +2 $MANIFEST); do
20 image=$(echo $line | cut -d , -f 1)
21 tag=$(echo $line | cut -s -d , -f 2)
22 perl -p -i -e "s|$image(:.*$\|$)|$image:$tag|g" $(find ./ -name values.yaml)