From e8c3dca8d36527731ed5726c5e39c5814b1ddb77 Mon Sep 17 00:00:00 2001 From: Daniel Caires Date: Wed, 28 Aug 2024 09:03:40 -0300 Subject: [PATCH] Add --ignore flag to build-helm-charts.sh file Recently a review was merged changing the cp command to rsync, so the helm-toolkit Helm-chart would not be added to the final application tarball. https://review.opendev.org/c/starlingx/root/+/927047 This change is a follow-up to that bug-fix. The objective here is to remove the hard coded helm-toolkit name from the rsync, and replace it with a variable containing the contents of a new flag (--ignore). This flag is to list all Helm-charts that are not to be included in the final application-tarball. Test-Plan: PASS - Application tarball built without the charts defined by the flag PASS - Application tarball is built if the flag is not used PASS - STX-Openstack upload, apply, remove, delete and re-upload Closes-Bug: 2077759 Change-Id: I3d04479c8fad108e8777368d28acee84b9f8f7a9 Signed-off-by: Daniel Caires --- build-tools/build-helm-charts.sh | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/build-tools/build-helm-charts.sh b/build-tools/build-helm-charts.sh index bc9bbc82..29b1f6cc 100755 --- a/build-tools/build-helm-charts.sh +++ b/build-tools/build-helm-charts.sh @@ -23,6 +23,7 @@ declare -a IMAGE_RECORDS declare -a PATCH_DEPENDENCIES declare -a APP_PACKAGES declare -a CHART_PACKAGE_FILES +declare -a IGNORE_CHARTS # PYTHON_2_OR_3: initialized below VERBOSE=false @@ -36,6 +37,7 @@ $(basename $0) [--os ] [-a, --app ] [-A, --app-version-file /path/to/$APP_VERSION_BASE] [-B, --app-version ] [--package ] [-i, --image-record ] [--label