File tree Expand file tree Collapse file tree 1 file changed +13
-11
lines changed
Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -279,15 +279,17 @@ if [ "$WORKFLOW_ENABLED" == "yes" ]; then
279279 echo " Workflow installation completed." ;
280280fi
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
You can’t perform that action at this time.
0 commit comments