File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ if [[ ${#@} -lt 1 || ${#@} -gt 2 ]]; then
14
14
exit 1
15
15
fi
16
16
17
- if kubectl get deployment olm-operator -n openshift-operator-lifecycle-manager -o=jsonpath= ' {.spec} ' > /dev/null 2>&1 ; then
17
+ if kubectl get deployment olm-operator -n openshift-operator-lifecycle-manager > /dev/null 2>&1 ; then
18
18
echo " OLM is already installed in a different configuration. This is common if you are not running a vanilla Kubernetes cluster. Exiting..."
19
19
exit 1
20
20
fi
@@ -24,6 +24,11 @@ base_url="${2:-${default_base_url}}"
24
24
url=" ${base_url} /${release} "
25
25
namespace=olm
26
26
27
+ if kubectl get deployment olm-operator -n ${namespace} > /dev/null 2>&1 ; then
28
+ echo " OLM is already installed in ${namespace} namespace. Exiting..."
29
+ exit 1
30
+ fi
31
+
27
32
kubectl apply -f " ${url} /crds.yaml"
28
33
kubectl wait --for=condition=Established -f " ${url} /crds.yaml"
29
34
kubectl apply -f " ${url} /olm.yaml"
You can’t perform that action at this time.
0 commit comments