
Remove old RBD/CephFS provisioners and replace with a currently supported and evolving set of provisioners based on https://github.com/ceph/ceph-csi version 3.6.2. Test Plan: PASS: AIO-SX app upload/apply/remove/delete/update PASS: AIO-DX app upload/apply/remove/delete PASS: Storage 2+2+2 app upload/apply/remove/delete PASS: Create pvc using storageclass general (rbd) on SX/DX/Storage PASS: Create pod using rbd pvc on SX/DX/Storage PASS: Create pvc using storageclass cephfs on SX/DX/Storage PASS: Create pod using cephfs pvc on SX/DX/Storage Story: 2009987 Task: 45050 Signed-off-by: Hediberto Cavalcante da Silva <hediberto.cavalcantedasilva@windriver.com> Change-Id: Iffcd56f689aa70788c4c2abbbf2c9a02b5a797cf
61 lines
1.9 KiB
Makefile
Executable File
61 lines
1.9 KiB
Makefile
Executable File
#!/usr/bin/make -f
|
|
# export DH_VERBOSE = 1
|
|
|
|
export ROOT = debian/tmp
|
|
export APP_FOLDER = $(ROOT)/usr/local/share/applications/helm
|
|
export EXTRA_CHARTS = $(ROOT)/opt/extracharts
|
|
|
|
export DEB_VERSION = $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ')
|
|
export MAJOR = $(shell echo $(DEB_VERSION) | cut -f 1 -d '-')
|
|
export MINOR_PATCH = $(shell echo $(DEB_VERSION) | cut -f 4 -d '.')
|
|
|
|
export APP_NAME = platform-integ-apps
|
|
export APP_VERSION = $(MAJOR)-$(MINOR_PATCH)
|
|
export APP_TARBALL_FLUXCD = $(APP_NAME)-$(APP_VERSION).tgz
|
|
export HELM_FOLDER = /usr/lib/helm
|
|
export HELM_REPO = stx-platform
|
|
export STAGING_FLUXCD = staging-fluxcd
|
|
|
|
%:
|
|
dh $@
|
|
|
|
override_dh_auto_build:
|
|
# Create the TGZ file.
|
|
cd helm-charts && make ceph-pools-audit
|
|
cd helm-charts && make node-feature-discovery
|
|
|
|
# Setup the staging directory.
|
|
mkdir -p $(STAGING_FLUXCD)
|
|
cp files/metadata.yaml $(STAGING_FLUXCD)
|
|
cp -Rv fluxcd-manifests $(STAGING_FLUXCD)
|
|
mkdir -p $(STAGING_FLUXCD)/charts
|
|
cp helm-charts/*.tgz $(STAGING_FLUXCD)/charts
|
|
cp /usr/lib/helm/ceph-csi-*.tgz $(STAGING_FLUXCD)/charts
|
|
|
|
# Populate metadata.
|
|
sed -i 's/@APP_NAME@/$(APP_NAME)/g' $(STAGING_FLUXCD)/metadata.yaml
|
|
sed -i 's/@APP_VERSION@/$(APP_VERSION)/g' $(STAGING_FLUXCD)/metadata.yaml
|
|
sed -i 's/@HELM_REPO@/$(HELM_REPO)/g' $(STAGING_FLUXCD)/metadata.yaml
|
|
|
|
# Copy the plugins: installed in the buildroot
|
|
mkdir -p $(STAGING_FLUXCD)/plugins
|
|
cp /plugins/$(APP_NAME)/*.whl $(STAGING_FLUXCD)/plugins
|
|
|
|
# Create the app package.
|
|
cd $(STAGING_FLUXCD) && find . -type f ! -name '*.md5' -print0 | xargs -0 md5sum > checksum.md5
|
|
tar cfz $(APP_TARBALL_FLUXCD) -C $(STAGING_FLUXCD)/ .
|
|
|
|
# Cleanup staging
|
|
rm -rf $(STAGING_FLUXCD)
|
|
|
|
override_dh_auto_install:
|
|
# Install the app tar file.
|
|
install -d -m 755 $(APP_FOLDER)
|
|
install -p -D -m 755 $(APP_TARBALL_FLUXCD) $(APP_FOLDER)
|
|
install -d -m 755 $(EXTRA_CHARTS)
|
|
install -p -D -m 755 helm-charts/node-feature-discovery-*.tgz $(EXTRA_CHARTS)
|
|
|
|
override_dh_auto_test:
|
|
|
|
override_dh_usrlocal:
|