Correction for Auto-increment chart versions.

Updates the rules file to search each helmrelease.yaml
file in the fluxcd-manifests folder for the actual
"chart:" entry instead of just the existance of the
chart name as a string.

Test Plan:
PASS - Ensure package builds & installs on AIO-SX

Story: 2010929
Task: 49363

Change-Id: I1ff8aa0fed2c21b6da32aadd4a205c86d69a32bc
Signed-off-by: Joshua Reed <joshua.reed@windriver.com>
This commit is contained in:
Joshua Reed 2024-02-28 11:10:51 -07:00
parent d3048d0f04
commit 44ca7cf4ec

View File

@ -32,7 +32,7 @@ override_dh_auto_build:
chart_name=$${chart%-*}; \
chart_version=$${chart##*-}; \
echo "Found $$chart; name: $$chart_name, version: $$chart_version"; \
chart_manifest=$$(find $(STAGING)/fluxcd-manifests -name helmrelease.yaml -exec grep -q $$chart_name {} \; -print); \
chart_manifest=$$(find $(STAGING)/fluxcd-manifests -name helmrelease.yaml -exec grep -q "chart:.*$$chart_name" {} \; -print); \
echo "Updating manifest: $$chart_manifest"; \
sed -i "s/REPLACE_HELM_CHART_VERSION/$$chart_version/g" $$chart_manifest; \
grep version $$chart_manifest; \