6 LINK=$(readlink "$(basename "$1")")
8 cd "$(dirname "$LINK")"
9 LINK=$(readlink "$(basename "$1")")
11 REALPATH="$PWD/$(basename "$1")"
16 if [ "$#" -ne 2 ]; then
17 echo This script updates OOM helm charts to use versions in docker-manifest.csv
18 echo "$0 <docker-manifest.csv> <oom repo directory>"
23 MANIFEST=$(realpath $1)
24 OOM_DIR=$(realpath $2)
26 if [ -z "$WORKSPACE" ]; then
27 export WORKSPACE=`git rev-parse --show-toplevel`
30 cd $OOM_DIR/kubernetes
32 for line in $(tail -n +2 $MANIFEST); do
33 image=$(echo $line | cut -d , -f 1)
34 tag=$(echo $line | cut -s -d , -f 2)
35 perl -p -i -e "s|$image(:.*$\|$)|$image:$tag|g" $(find ./ -name values.yaml)