fix(integration-tests): read correct minikube status (#1768) (#1769)

Resolves #1768 by using the correct status fields

Signed-off-by: Niklas Ott <n.ott@syseleven.de>
This commit is contained in:
Ceriath 2024-11-05 15:24:36 +01:00 committed by GitHub
parent 77a5d9d516
commit fc3a5ea374
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -5,10 +5,10 @@
if ! hash minikube 2>/dev/null; then
fail "Minikube needs to be installed."
fi
if [ ! $(minikube status --format '{{.MinikubeStatus}}') == "Running" ]; then
if [ ! "$(minikube status --format '{{.Host}}')" == "Running" ]; then
fail "Minikube is not running."
fi
if [ ! $(minikube status --format '{{.ClusterStatus}}') == "Running" ]; then
if [ ! "$(minikube status --format '{{.APIServer}}')" == "Running" ]; then
fail "Minikube Cluster is not running."
fi
if ! kubectl version 1> /dev/null; then