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 directory>"
10 MANIFEST=$(realpath $1)
11 OOM_DIR=$(realpath $2)
13 if [ -z "$WORKSPACE" ]; then
14 export WORKSPACE=`git rev-parse --show-toplevel`
17 DIR=$(dirname $(readlink -f "$0"))
18 TARGET_DIR=$DIR/target
23 cd $OOM_DIR/kubernetes
25 for line in $(tail -n +2 $MANIFEST); do
26 image=$(echo $line | cut -d , -f 1)
27 tag=$(echo $line | cut -s -d , -f 2)
28 perl -p -i -e "s|image: $image(:.*$\|$)|image: $image:$tag|g" $(find ./ -name values.yaml)