diff options
author | Staffan Olsson <staffan@repos.se> | 2017-06-27 07:58:06 +0200 |
---|---|---|
committer | Staffan Olsson <staffan@repos.se> | 2017-06-27 07:58:06 +0200 |
commit | f45ced550d55f58937f27b008ec73f6b51c6bd65 (patch) | |
tree | bff86be15336ce5125fca6df8a61d91860328abf /update-kafka-image.sh | |
parent | 10543bfbd2f83a3f4c53b3d6d73e582de1e99878 (diff) | |
download | kubernetes-kafka-f45ced550d55f58937f27b008ec73f6b51c6bd65.tar.gz kubernetes-kafka-f45ced550d55f58937f27b008ec73f6b51c6bd65.tar.bz2 kubernetes-kafka-f45ced550d55f58937f27b008ec73f6b51c6bd65.zip |
Adds utility to update the kafka image, which we keep the same to minimize pull waits
Diffstat (limited to 'update-kafka-image.sh')
-rwxr-xr-x | update-kafka-image.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/update-kafka-image.sh b/update-kafka-image.sh new file mode 100755 index 0000000..1c32293 --- /dev/null +++ b/update-kafka-image.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +IMAGE=$1 +[ -z "$IMAGE" ] && echo "First argument should be the image to set" && exit 1 + +for F in ./ test/ zookeeper/; do + sed -i "s|image: solsson/kafka:.*|image: $IMAGE|" $F*.yml +done |