Skip to content

Commit

Permalink
export variables
Browse files Browse the repository at this point in the history
  • Loading branch information
friedrichwilken committed Oct 6, 2023
1 parent ed91fea commit 4cf6f4b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hack/ci/check-k8s-resource-is-ready.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ namespace=${3:-kyma-system}
check-nats-ready() {
echo "checking ${resource} in the namespace ${namespace} to become 'Ready' for ${timeouttime} seconds"

timeout ${timeouttime} bash -c 'while [[ "$(kubectl get -n ${namespace} ${resource} -ojsonpath='{.items[0].status.state}')" != "Ready" ]]; do sleep 1; done'
export resource
export namespace
timeout ${timeouttime} bash -c 'while [[ "$(kubectl get -n $namespace $resource -ojsonpath='{.items[0].status.state}')" != "Ready" ]]; do sleep 1; done'

if [[ $? -ne 0 ]]; then
echo "NATS was not 'Ready' after ${timeouttime} seconds"
Expand Down

0 comments on commit 4cf6f4b

Please sign in to comment.