undo readyz formatting...

...running into weird issues and keep getting 403, while it worked
with the old formatting. maybe bash escaping?
This commit is contained in:
phaer 2022-02-11 23:10:43 +01:00
parent 92937f0081
commit d56031951e

View File

@ -95,12 +95,8 @@ resource "hcloud_server" "first_control_plane" {
echo "Initiating the cluster..." echo "Initiating the cluster..."
sleep 2 sleep 2
done done
timeout 120 bash <<EOF timeout 120 bash -c 'while [[ "$(curl -s -o /dev/null -w ''%%{http_code}'' curl -k https://localhost:6443/readyz)" != "200" ]]; do echo "Waiting for cluster to become ready"
while [[ "$(curl -s -o /dev/null -w ''%%{http_code}'' curl -k https://localhost:6443/readyz)" != "200" ]] ; sleep 1; done'
do
echo "Waiting for cluster to become ready"
sleep 1
done
EOF EOF
EOT EOT
] ]