Tae Park 96c4965be3 Separate vault-manager to a new package
Isolating all vault-manager helm chart and related content into a new
package. Per STX.APP.12, STX.APP.13, vault-manager should be allowed to
be disabled so that another solution can be used to manage vault. The
file structure is also changed, so that vault-helm is under
helm-charts/upstream, and vault-manager-helm is under helm-chart/custom

Test Plan:
PASS	build all vault-related packages
PASS	Create new vault application tarball
PASS 	test existing vault features:
PASS		AIO-SX vault sanity
PASS		Vault rekey feature test
PASS		vault application update and watch PVC conversion

Story: 2010929
Task: 49600

Change-Id: I87cce3466ad905d00da715ce582baa28371135c1
Signed-off-by: Tae Park <tae.park@windriver.com>
2024-03-11 14:49:10 -04:00

27 lines
777 B
Makefile
Executable File

#!/usr/bin/make -f
export DH_VERBOSE = 1
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)
export ROOT = debian/tmp
export APP_FOLDER = $(ROOT)/usr/lib/helm
%:
dh $@
override_dh_auto_build:
mkdir -p vault-manager
cp Chart.yaml values.yaml vault-manager
cp -r templates/ vault-manager
make CHART_VERSION=$(CHART_VERSION) vault-manager
override_dh_auto_install:
# Install the app tar file.
install -d -m 755 $(APP_FOLDER)
install -p -D -m 755 vault-manager*.tgz $(APP_FOLDER)
override_dh_auto_test: