Skip to content

Commit

Permalink
Further script updates
Browse files Browse the repository at this point in the history
  • Loading branch information
sjd78 committed May 22, 2024
1 parent 6e2d36f commit 95b42a4
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions hack/setup-operator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
#
# By default, no authentication, and only use pre-built images
#
set -e
set -oq pipefail
set -euxo pipefail

# use kubectl if available, else fall back to `minikube kubectl --`, else error
KUBECTL=kubectl
Expand Down Expand Up @@ -96,14 +95,14 @@ spec:
sourceNamespace: ${NAMESPACE}
EOF

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

# $KUBECTL wait \
# --namespace ${NAMESPACE} \
# --for=condition=established \
# customresourcedefinitions.apiextensions.k8s.io/tackles.tackle.konveyor.io
$KUBECTL wait \
--namespace ${NAMESPACE} \
--for=condition=established \
customresourcedefinitions.apiextensions.k8s.io/tackles.tackle.konveyor.io
}

install_tackle() {
Expand Down

0 comments on commit 95b42a4

Please sign in to comment.