Replace sleep with kubectl wait in prepare-supervisor-on-kind.sh
- Now that the FederationDomain has `status.conditions`, we can use `kubectl wait` to wait for it to be ready in this hack script
This commit is contained in:
parent
8e169f9702
commit
b05e8a5e24
@ -351,8 +351,7 @@ spec:
|
||||
EOF
|
||||
|
||||
echo "Waiting for FederationDomain to initialize or update..."
|
||||
# Sleeping is a race, but that's probably good enough for the purposes of this script.
|
||||
sleep 5
|
||||
kubectl wait --for=condition=Ready FederationDomain/my-federation-domain -n "$PINNIPED_TEST_SUPERVISOR_NAMESPACE"
|
||||
|
||||
# Test that the federation domain is working before we proceed.
|
||||
echo "Fetching FederationDomain discovery info via command: https_proxy=\"$PINNIPED_TEST_PROXY\" curl -fLsS --cacert \"$root_ca_crt_path\" \"$issuer/.well-known/openid-configuration\""
|
||||
|
Loading…
Reference in New Issue
Block a user