Files
app-istio/helm-charts/upstream/kiali-helm/debian/deb_folder/rules
Aman Pandae 221cc28d53 Auto-increment chart versions for Istio
Enable auto-versioning of helm charts to ensure the FluxCD
helm controller recognizes chart changes.
Istio App has two upstream charts -
1. Istio
2. Kiali
Changes are done such that both the charts are incremented

Test Plan:
PASS: Build all packages generating an application tarball verifying
      all versions on the charts and application make sense.
PASS: Introduce temporary chart changes and ensure that the versions
      increment as expected.
PASS: Validate basic application lifecycle operations:
      upload/apply/remove/delete.

Story: 2010929
Task: 49906

Change-Id: Iec66a4298293e3e270d8322bf7ae4ab5407ba7ac
Signed-off-by: Aman Pandae <AmanPandae.Mothukuri@windriver.com>
2024-05-15 13:08:18 -04:00

26 lines
733 B
Makefile
Executable File

#!/usr/bin/make -f
# export DH_VERBOSE = 1
export ROOT = debian/tmp
export CHART_FOLDER = $(ROOT)/usr/lib/helm
export DEB_VERSION = $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ')
export PATCH_VERSION = $(shell echo $(DEB_VERSION) | cut -f 4 -d '.')
export CHART_BASE_VERSION = $(shell echo $(DEB_VERSION) | sed 's/-/./' | cut -d '.' -f 1-3)
export CHART_VERSION = $(CHART_BASE_VERSION)+STX.$(PATCH_VERSION)
%:
dh $@
override_dh_auto_build:
# Create the TGZ file.
apt install curl -y
make build-helm-charts VERSION=$(CHART_VERSION)
override_dh_auto_install:
# Install the app tar file.
install -d -m 755 $(CHART_FOLDER)
install -p -D -m 755 _output/charts/*.tgz $(CHART_FOLDER)
override_dh_auto_test: