Merge "Replace flannel with calico"
[icn.git] / deploy / kata / kata.sh
index 4601e73..967a891 100755 (executable)
@@ -37,6 +37,7 @@ function deploy_webhook {
     # create-certs.sh takes care of converting the .yaml.tpl into the
     # .yaml file
     mkdir -p ${BUILDDIR}/webhook/base/deploy
+    curl -sL ${KATA_WEBHOOK_URL}/common.bash -o ${BUILDDIR}/webhook/base/common.bash
     curl -sL ${KATA_WEBHOOK_URL}/create-certs.sh -o ${BUILDDIR}/webhook/base/create-certs.sh
     curl -sL ${KATA_WEBHOOK_URL}/deploy/webhook-registration.yaml.tpl -o ${BUILDDIR}/webhook/base/deploy/webhook-registration.yaml.tpl
     curl -sL ${KATA_WEBHOOK_URL}/deploy/webhook.yaml -o ${BUILDDIR}/webhook/base/deploy/webhook.yaml
@@ -77,6 +78,7 @@ function test_kata {
     clusterctl -n metal3 get kubeconfig ${cluster_name} >${cluster_kubeconfig}
 
     # Ensure that Kata has been deployed first
+    WAIT_FOR_TRIES=30
     wait_for is_kata_deployed
 
     deploy_webhook ${cluster_name}