Skip to content

Commit 95b42a4

Browse files
committed
Further script updates
1 parent 6e2d36f commit 95b42a4

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

hack/setup-operator.sh

+8-9
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
#
88
# By default, no authentication, and only use pre-built images
99
#
10-
set -e
11-
set -oq pipefail
10+
set -euxo pipefail
1211

1312
# use kubectl if available, else fall back to `minikube kubectl --`, else error
1413
KUBECTL=kubectl
@@ -96,14 +95,14 @@ spec:
9695
sourceNamespace: ${NAMESPACE}
9796
EOF
9897

99-
# If on MacOS, need to install `brew install coreutils` to get `timeout`
100-
timeout 600s bash -c "until $KUBECTL get customresourcedefinitions.apiextensions.k8s.io tackles.tackle.konveyor.io; do sleep 30; done" \
101-
|| $KUBECTL get subscription --namespace ${NAMESPACE} -o yaml konveyor-operator # Print subscription details when timed out
98+
# # If on MacOS, need to install `brew install coreutils` to get `timeout`
99+
# timeout 600s bash -c "until $KUBECTL get customresourcedefinitions.apiextensions.k8s.io tackles.tackle.konveyor.io; do sleep 30; done" \
100+
# || $KUBECTL get subscription --namespace ${NAMESPACE} -o yaml konveyor-operator # Print subscription details when timed out
102101

103-
# $KUBECTL wait \
104-
# --namespace ${NAMESPACE} \
105-
# --for=condition=established \
106-
# customresourcedefinitions.apiextensions.k8s.io/tackles.tackle.konveyor.io
102+
$KUBECTL wait \
103+
--namespace ${NAMESPACE} \
104+
--for=condition=established \
105+
customresourcedefinitions.apiextensions.k8s.io/tackles.tackle.konveyor.io
107106
}
108107

109108
install_tackle() {

0 commit comments

Comments
 (0)