
Upgrade metrics-server helm charts version from 3.11.0 to 3.12.0 and metrics-server image version from 0.6.4 to 0.7.0. The new version supports k8s 1.24 - 1.29. Furthermore, the name of the example application, which was in the singular, and the readme, which was inconsistent, were corrected. Test Plan: PASS: Build package PASS: App upload/apply/update/remove/delete PASS: Check application version PASS: Run sample application Story: 2010681 Task: 49567 Change-Id: Ie592c03147b3cf40e9eeb631c18725d25460becf Signed-off-by: Erickson Silva de Oliveira <Erickson.SilvadeOliveira@windriver.com>
28 lines
651 B
Makefile
28 lines
651 B
Makefile
#!/usr/bin/make -f
|
|
# export DH_VERBOSE = 1
|
|
|
|
export METRICS_MGR_PKG="metrics-server-3.12.0.tgz"
|
|
export HELM_FOLDER=/usr/lib/helm
|
|
export ROOT=debian/tmp
|
|
export APP_FOLDER=$(ROOT)$(HELM_FOLDER)
|
|
|
|
%:
|
|
dh $@
|
|
|
|
override_dh_auto_build:
|
|
# Unpack metrics-server source
|
|
tar xzf $(METRICS_MGR_PKG)
|
|
|
|
# Apply patch to code
|
|
cd metrics-server && patch -p1 < ../0001-Add-sample-app-to-metrics-server.patch
|
|
cd metrics-server && patch -p1 < ../0002-Add-label-platform-application-to-pods.patch
|
|
|
|
# Create the TGZ file.
|
|
make metrics-server
|
|
|
|
override_dh_auto_install:
|
|
install -d -m 755 $(APP_FOLDER)
|
|
install -p -D -m 755 *.tgz $(APP_FOLDER)
|
|
|
|
override_dh_auto_test:
|