8e3c97714b
CHG: - reno-check script to ignore subchart - .Release.Name to match .Chart.Name instead: - mariadb - rabbitmq - memcached Change-Id: Ieaecd5537c2843357b2787f6f59405b672ce8b8a
18 lines
467 B
Bash
Executable File
18 lines
467 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
RESULT=0
|
|
IFS=$'\n'
|
|
for chart in $(find $(pwd) -maxdepth 2 -name 'Chart.yaml');do
|
|
SERVICE=$(egrep "^name:" "$chart"|awk -F ' ' '{print $2}')
|
|
VERSION=$(egrep "^version:" "$chart"|awk -F ' ' '{print $2}')
|
|
if grep -q "$VERSION" ./releasenotes/notes/$SERVICE.yaml ; then
|
|
echo "$SERVICE is up to date!"
|
|
else
|
|
echo "$SERVICE version does not match release notes. Likely requires a release note update"
|
|
RESULT=1
|
|
fi
|
|
done
|
|
|
|
exit $RESULT
|