
This commit adds helm chart of the GPU plugin to the Intel Device Plugins app. TEST CASES: PASSED: Build is success. PASSED: Extract the content of stx-intel-device-plugins-helm_*amd64.deb and check if the helm tar file is present. PASSED: Upload using 'system application-upload' command PASSED: Check the status of charts using below command, it should be disabled. "system helm-override-list app_name --long" PASSED: Enable the charts using below command: "system helm-chart-attribute-modify --enabled true app_name chart_name namespace" PASSED: Apply the app using "system application-apply" command PASSED: Check the daemonset of GPU using command: "kubectl get ds -n intel-device-plugins-operator". Status is in pending state because of no GPU hardware available. PASSED: Tested app upload/apply/remove/delete in AIO-SX. Story: 2010604 Task: 49075 Change-Id: Idac5be302f209b2fcdd1b40c0d1dd9b1d08f18dc Signed-off-by: Md Irshad Sheikh <mdirshad.sheikh@windriver.com>
30 lines
832 B
Makefile
30 lines
832 B
Makefile
#!/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 intel-device-plugins-gpu
|
|
cp Chart.yaml intel-device-plugins-gpu
|
|
cp -r templates/ intel-device-plugins-gpu
|
|
cp values.yaml intel-device-plugins-gpu
|
|
|
|
make intel-device-plugins-gpu
|
|
|
|
override_dh_auto_install:
|
|
# Install the app tar file.
|
|
install -d -m 755 $(APP_FOLDER)
|
|
install -p -D -m 755 intel-device-plugins-gpu*.tgz $(APP_FOLDER)
|
|
|
|
override_dh_auto_test:
|