From c80d53e79acfd683cdef948ff7f64f63638b77f1 Mon Sep 17 00:00:00 2001 From: Adhishree Kadam <118783118+adhishreekadam@users.noreply.github.com> Date: Fri, 26 Jul 2024 00:24:05 -0400 Subject: [PATCH] Update kubearmor-install.sh Issue #4115- added steps 1 and 2 Signed-off-by: Adhishree Kadam <118783118+adhishreekadam@users.noreply.github.com> --- agent-install/kubearmor-install.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/agent-install/kubearmor-install.sh b/agent-install/kubearmor-install.sh index 8b1378917..96a731449 100644 --- a/agent-install/kubearmor-install.sh +++ b/agent-install/kubearmor-install.sh @@ -1 +1,19 @@ +#!/bin/bash +# Installs the kube armor operator on the Open Horizon cluster agent + +set -e #future: remove? + +echo "Starting KubeArmor installation..." + +# Step 1: Install Helm (if not already installed) +if ! command -v helm &> /dev/null; then + echo "Helm not found, installing Helm..." + curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash +else + echo "Helm is already installed" +fi + +# Step 2: Create a new working directory for a new horizon project +echo "Create a new working directory for a new horizon project" +hzn dev service new -V 1.0.0 -s kubearmor-operator -c cluster