Skip to content

Commit

Permalink
Update kubearmor-install.sh
Browse files Browse the repository at this point in the history
Issue open-horizon#4115- added steps 1 and 2

Signed-off-by: Adhishree Kadam <[email protected]>
  • Loading branch information
adhishreekadam authored Jul 26, 2024
1 parent 060b05f commit c80d53e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions agent-install/kubearmor-install.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c80d53e

Please sign in to comment.