Skip to content

Commit 57c460b

Browse files
making Gatekeeper optional feature
1 parent cfe5b8c commit 57c460b

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

installation-scripts-onm/MASTER_START_SCRIPT.sh

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -279,15 +279,17 @@ if [ "$WORKFLOW_ENABLED" == "yes" ]; then
279279
echo "Workflow installation completed.";
280280
fi
281281

282-
echo "Installing OPA Gatekeeper..."
283-
wget https://raw.githubusercontent.com/eu-nebulous/security-manager/dev/OPA-GATEKEEPER-INSTALL.sh
284-
chmod +x OPA-GATEKEEPER-INSTALL.sh
285-
./OPA-GATEKEEPER-INSTALL.sh
286-
287-
echo "Installing Security Manager..."
288-
$dau bash -c 'helm install security-manager nebulous/nebulous-security-manager \
289-
--set-file configMap.k3sConfig="$KUBECONFIG" \
290-
--set tolerations[0].key="node-role.kubernetes.io/control-plane" \
291-
--set tolerations[0].operator="Exists" \
292-
--set tolerations[0].effect="NoSchedule"'
282+
if [ "$SECURITY_MANAGER_ENABLED" == "yes" ]; then
283+
echo "Installing OPA Gatekeeper..."
284+
wget https://raw.githubusercontent.com/eu-nebulous/security-manager/dev/OPA-GATEKEEPER-INSTALL.sh
285+
chmod +x OPA-GATEKEEPER-INSTALL.sh
286+
./OPA-GATEKEEPER-INSTALL.sh
287+
288+
echo "Installing Security Manager..."
289+
$dau bash -c 'helm install security-manager nebulous/nebulous-security-manager \
290+
--set-file configMap.k3sConfig="$KUBECONFIG" \
291+
--set tolerations[0].key="node-role.kubernetes.io/control-plane" \
292+
--set tolerations[0].operator="Exists" \
293+
--set tolerations[0].effect="NoSchedule"'
294+
fi
293295

0 commit comments

Comments
 (0)