stx-metrics-server-helm: remove dl_hook

Replace dl_hook with "src_path" and "src_files"

Test Plan:

Pass: successfully build stx-metrics-server-helm
Pass: No difference comparing with the result of dl_hook

Story: 2009101
Task: 43854

Signed-off-by: Yue Tao <Yue.Tao@windriver.com>
Change-Id: I350f3954005fa7aec42f940eb4bde765795559a4
This commit is contained in:
Yue Tao 2022-01-14 17:08:14 +08:00 committed by Yue Tao
parent 204c71c7e1
commit 1b9a8cd6cf
2 changed files with 3 additions and 19 deletions

View File

@ -1,18 +0,0 @@
#!/bin/bash
set -x
PKG_BUILD_NAME=$1
PKG_BUILD_ROOT=$(realpath `pwd`/${PKG_BUILD_NAME})
PKG_DIR="stx-metrics-server-helm"
STX_BASE=$(realpath ${MY_REPO}/stx)
SRC=$(realpath ${STX_BASE}/metrics-server-armada-app/${PKG_DIR}/${PKG_DIR})
PSP_HELM_CHARTS=$(realpath ${STX_BASE}/helm-charts/psp-rolebinding/psp-rolebinding/helm-charts)
mkdir -p ${PKG_BUILD_ROOT}
# Copy PSP rolebinding helm charts to the build directory.
cp -pr ${PSP_HELM_CHARTS} ${PKG_BUILD_ROOT}
cp -pr ${SRC}/files ${PKG_BUILD_ROOT}
cp -pr ${SRC}/helm-charts/ ${PKG_BUILD_ROOT}
cp -pr ${SRC}/manifests ${PKG_BUILD_ROOT}

View File

@ -1,7 +1,9 @@
---
debname: stx-metrics-server-helm
debver: 1.0-1
dl_hook: dl_hook
src_path: stx-metrics-server-helm
src_files:
- ${MY_REPO}/stx/helm-charts/psp-rolebinding/psp-rolebinding/helm-charts
revision:
dist: $STX_DIST
PKG_GITREVCOUNT: true