Skip to content

Commit ef6ae6a

Browse files
committed
Fix 2327
Signed-off-by: Ying Mo <[email protected]>
1 parent 51fe6da commit ef6ae6a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/install.sh

+5
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ base_url="${2:-${default_base_url}}"
2424
url="${base_url}/${release}"
2525
namespace=olm
2626

27+
if kubectl get deployment olm-operator -n ${namespace} -o=jsonpath='{.spec}' > /dev/null 2>&1; then
28+
echo "OLM is already installed in ${namespace} namespace. Exiting..."
29+
exit 1
30+
fi
31+
2732
kubectl apply -f "${url}/crds.yaml"
2833
kubectl wait --for=condition=Established -f "${url}/crds.yaml"
2934
kubectl apply -f "${url}/olm.yaml"

0 commit comments

Comments
 (0)