Tae Park dbbf5c7ec4 Initial Package Upload for Openbao
Containing the initial package for Openbao application. Contains a
working package of openbao-helm, openbao-manager-helm,
python3-k8sapp-openbao, and stx-openbao-helm.

Test Plan:
PASS    Packages are successfully built, and the application tarball is
        created.
PASS    Application is uploaded and applied with no errors
PASS    Application is configured for sanity testing
PASS    Application passes aware/unaware test for sanity
PASS    Application functions when network access is restricted to
        internal registry

Story: 2011244
Task: 51378

Change-Id: I10910b3cc00c3e45ebce0df20bbee53af3d8543b
Signed-off-by: Tae Park <tae.park@windriver.com>
2025-01-14 09:37:28 -05:00

30 lines
903 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:
# Set up chart build files.
mkdir openbao
cp charts/openbao/Chart.yaml charts/openbao/values.yaml openbao
cp openbao-certificates.yaml charts/openbao/templates
mv charts/openbao/templates openbao/templates
# Create the TGZ file.
make CHART_VERSION=$(CHART_VERSION) openbao
override_dh_auto_install:
# Install the app tar file.
install -d -m 755 $(APP_FOLDER)
install -p -D -m 755 openbao*.tgz $(APP_FOLDER)
override_dh_auto_test: