aboutsummaryrefslogtreecommitdiffstats
path: root/csit
diff options
context:
space:
mode:
authorrameshiyer27 <ramesh.murugan.iyer@est.tech>2023-06-28 12:15:14 +0100
committerAdheli Tavares <adheli.tavares@est.tech>2023-06-29 12:19:00 +0000
commitbdced49a2f16f1787088aa4f1013d8a07be51ec4 (patch)
treea505ae6a28adfb6688deb0e40f14e58bd867abe5 /csit
parent50f836bb0c266ffa20ffeef6720c81aa8133091c (diff)
Make update to allow local image to be used in Nordix
Change-Id: I6be9de1afa529c0d6f20ecfd594a1b48a45b543a Issue-ID: POLICY-4647 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech>
Diffstat (limited to 'csit')
-rwxr-xr-xcsit/run-k8s-csit.sh14
1 files changed, 13 insertions, 1 deletions
diff --git a/csit/run-k8s-csit.sh b/csit/run-k8s-csit.sh
index 758617af..d383d1a1 100755
--- a/csit/run-k8s-csit.sh
+++ b/csit/run-k8s-csit.sh
@@ -284,6 +284,13 @@ function push_acelement_chart() {
OPERATION="$1"
PROJECT="$2"
+if [ -z "$3" ]
+then
+ LOCALIMAGE="false"
+else
+ LOCALIMAGE="$3"
+fi
+
if [ $OPERATION == "install" ]; then
spin_microk8s_cluster
@@ -291,6 +298,11 @@ if [ $OPERATION == "install" ]; then
set_project_config
echo "Installing policy helm charts in the default namespace"
source ${WORKSPACE}/compose/get-k8s-versions.sh
+ if [ $LOCALIMAGE == "true" ]; then
+ echo "loading local image"
+ source ${WORKSPACE}/compose/get-versions.sh
+ ${WORKSPACE}/compose/loaddockerimage.sh
+ fi
cd ${WORKSPACE}/helm || exit
sudo microk8s helm dependency build policy
sudo microk8s helm install csit-policy policy ${SET_VALUES}
@@ -316,5 +328,5 @@ elif [ $OPERATION == "clean" ]; then
teardown_cluster
else
- echo "Invalid arguments provided. Usage: $0 [options..] {install {project_name} | uninstall | clean}"
+ echo "Invalid arguments provided. Usage: $0 [options..] {install {project_name} | uninstall | clean} {uselocalimage = true/false}"
fi