From 782390acef88ade323003fd12f26e0ffa9ef27a0 Mon Sep 17 00:00:00 2001
From: Pawel Wieczorek
Date: Thu, 29 Oct 2020 12:04:58 +0100
Subject: Make initial cluster setup more robust
Action "reset" triggers cluster shutdown attempt which will cause
failure of subsequent calls for cluster status.
Issue-ID: INT-1571
Change-Id: I4e607358fbeb910a250ac038cfc43682fb94bdea
Signed-off-by: Pawel Wieczorek
---
test/security/check_versions/env/Vagrantfile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/test/security/check_versions/env/Vagrantfile b/test/security/check_versions/env/Vagrantfile
index 28abbc504..9753a74ad 100644
--- a/test/security/check_versions/env/Vagrantfile
+++ b/test/security/check_versions/env/Vagrantfile
@@ -27,7 +27,8 @@ Vagrant.configure("2") do |config|
end
config.vm.provision :reload;
config.vm.provision "shell", privileged: false, inline: <<-end
- microk8s reset &&\
+ microk8s start &&\
+ microk8s status --wait-ready &&\
microk8s config > /home/vagrant/.kube/config &&\
microk8s kubectl apply -f /home/vagrant/k8s_bin_versions_inspector/env/configuration
end
--
cgit 1.2.3-korg