openstack-helm-infra/tools/gate/reno-check.sh
Graham Steffaniak 8e3c97714b Updated chart naming for subchart compatibility
CHG: - reno-check script to ignore subchart
     - .Release.Name to match .Chart.Name instead:
       - mariadb
       - rabbitmq
       - memcached

Change-Id: Ieaecd5537c2843357b2787f6f59405b672ce8b8a
2022-03-23 17:24:05 -05:00

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