forked from open-horizon/anax
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue open-horizon#4115- added steps 1 and 2 Signed-off-by: Adhishree Kadam <[email protected]>
- Loading branch information
1 parent
060b05f
commit c80d53e
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |