Add pre-existing metadata file support when building app tarballs

If an application RPM contains a metadata file, copy it into the staging
area and use it as a baseline for further modifications.

This enables specifying 'disabled_charts' metadata to allow specific
charts to be disabled automatically on application upload

Change-Id: I418f0fe4978946a44e512c3025817fb27216c078
Partial-Bug: #1833746
Signed-off-by: Robert Church <robert.church@windriver.com>
This commit is contained in:
Robert Church 2019-07-21 18:48:47 -04:00
parent 1f9509c2f9
commit c8e076be39

View File

@ -448,6 +448,11 @@ if [ $? -ne 0 ]; then
exit 1
fi
# Stage metadata file, if present
if [ -e usr/lib/application/metadata.yaml ]; then
cp usr/lib/application/metadata.yaml staging/.
fi
# Merge yaml files:
APP_YAML=${APP_NAME}.yaml
parse_yaml $APP_YAML `ls -rt usr/lib/armada/*.yaml`