From 44ca7cf4ec2c9729d4d3fd7a43b311baf516ec9d Mon Sep 17 00:00:00 2001 From: Joshua Reed Date: Wed, 28 Feb 2024 11:10:51 -0700 Subject: [PATCH] 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 --- stx-platform-helm/debian/deb_folder/rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stx-platform-helm/debian/deb_folder/rules b/stx-platform-helm/debian/deb_folder/rules index 91360ce..6f71bea 100755 --- a/stx-platform-helm/debian/deb_folder/rules +++ b/stx-platform-helm/debian/deb_folder/rules @@ -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; \