integ/kubernetes/helm/debian/deb_folder/rules
David Bastos e24e2005d5 Remove MAKEKUBEAPI package
Mapkubeapis is a Helm v3 plugin which updates in-place Helm
release metadata that contains deprecated or removed Kubernetes
APIs to a new instance with supported Kubernetes APIs, or entirely
removes references to resources that use APIs that were removed
and do not have a successor.

It was needed when helmv2 was migrated to helmv3, but is now no
longer used.

Test plan:
PASS: build-pkgs -c -p helm
PASS: build-pkgs --clean --all
PASS: Build new image
PASS: full AIO-SX deployment
PASS: No references to the mapkubeapis plugin were found anymore
PASS: Upload, apply, remove and delete nginx-ingress-controller
PASS: Upload, apply, remove and delete platform-integ-apps
PASS: Upload, apply, remove and delete metrics-server

Story: 2011129
Task: 50214

Change-Id: I23a970a2c17b35ebe8c8aa915c8cd0246c598d5c
Signed-off-by: David Bastos <david.barbosabastos@windriver.com>
2024-06-03 10:14:14 -03:00

31 lines
792 B
Makefile
Executable File

#!/usr/bin/make -f
# vim: set expandtab!
# export DH_VERBOSE = 1
export ROOT = debian/tmp
export SBINDIR = $(ROOT)/usr/sbin
export SUDOERDIR = $(ROOT)/etc/sudoers.d
export HELM_VERSION = 3.14.4
export HELM_EXECUTABLE = linux-amd64/helm
export HELM_PKG = helm-v$(HELM_VERSION)-linux-amd64.tar.gz
%:
dh $@
override_dh_auto_build:
# Extract the third party helm package downloaded in dl_hook.
tar xfz $(HELM_PKG)
override_dh_auto_install:
install -d -m 755 $(SBINDIR)
install -d -m 755 $(ROOT)/usr/local/sbin
install -p -D -m 755 $(HELM_EXECUTABLE) $(SBINDIR)
install -p -D -m 755 helm-upload $(ROOT)/usr/local/sbin
install -d -m 755 $(SUDOERDIR)
install -p -D -m 440 helm.sudo $(SUDOERDIR)/helm
install -d -m 755 $(ROOT)/usr/local/share/helm
override_dh_usrlocal:
# Do Nothing