Jerry Sun 444c592d61 Upversion Portieris to 0.13.10
This commit upversions Portieris to version 0.13.10. The upversioning
addresses CVEs in the previons (0.13.1) Portieris image.

The additional toleration is to allow Portieris pods to be scheduled.
Without it, application apply fails. The taint used to be "master"
in older releases, but has been changed to "control-plane". Keeping
both for backwards compatibility and upgrades.

Test Cases:

PASS: Apply new verison of Portieris. Apply an imagepolicy. Ensure
      that a signed image can be used and an unsigned image is denied
      according to the imagepolicy.
PASS: Remove all user created imagepolicies and try to use the
      unsigned image. Ensure that by default, unsigned images are
      allowed.

Closes-bug: 2051611
Change-Id: Id621d91ed41a705035713ff59439f59211e035f5
Signed-off-by: Jerry Sun <jerry.sun@windriver.com>
2024-02-01 10:31:53 -05:00

27 lines
701 B
Makefile
Executable File

#!/usr/bin/make -f
# export DH_VERBOSE = 1
export ROOT = debian/tmp
export CHART_FOLDER = $(ROOT)/usr/lib/helm
export PORTIERIS_VERSION = v0.13.10
export PORTIERIS_TARBALL = portieris-$(PORTIERIS_VERSION).tgz
%:
dh $@
override_dh_auto_build:
# Host a server for the helm charts.
chartmuseum --debug --port=8879 --context-path='/charts' --storage="local" \
--storage-local-rootdir="." &
sleep 2
helm repo add local http://localhost:8879/charts
# Create the TGZ file.
make helm.package
# Terminate the helm chart server.
pkill chartmuseum
override_dh_auto_install:
# Install the app tar file.
install -d -m 755 $(CHART_FOLDER)
install -p -D -m 755 $(PORTIERIS_TARBALL) $(CHART_FOLDER)