Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pkg/provider/ibmcloud/action/kind/cloud-config
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ runcmd:
- cmdKubeconfig="kind get kubeconfig --name kind-mapt > kubeconfig"
- cmdCheckCluster="kubectl --request-timeout=3s --insecure-skip-tls-verify --kubeconfig kubeconfig get node >/dev/null 2>&1"
- until eval $cmdCheckCluster; do sleep 5; eval $cmdKubeconfig; done
- sed -i 's#https://0.0.0.0:6443#https://127.0.0.1:6443#' /kubeconfig
# Verify control-plane stability before exporting the kubeconfig.
# The basic API check above only confirms the API server accepts a
# single request. Control-plane pods may still restart during the
Expand All @@ -65,7 +66,7 @@ runcmd:
- |
#!/bin/bash
set -e
export KUBECONFIG=/root/kubeconfig
export KUBECONFIG=/kubeconfig
MAX_WAIT=300
START=$SECONDS
echo "Waiting for control-plane pods to reach Ready state..."
Expand Down
3 changes: 2 additions & 1 deletion pkg/target/service/kind/cloud-config
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ runcmd:
- cmdKubeconfig="kind get kubeconfig --name kind-mapt > kubeconfig"
- cmdCheckCluster="kubectl --request-timeout=3s --insecure-skip-tls-verify --kubeconfig kubeconfig get node >/dev/null 2>&1"
- until eval $cmdCheckCluster; do eval $cmdKubeconfig; done
- sed -i 's#https://0.0.0.0:6443#https://127.0.0.1:6443#' /kubeconfig
# Verify control-plane stability before exporting the kubeconfig.
# The basic API check above only confirms the API server accepts a
# single request. Control-plane pods may still restart during the
Expand All @@ -68,7 +69,7 @@ runcmd:
- |
#!/bin/bash
set -e
export KUBECONFIG=/root/kubeconfig
export KUBECONFIG=/kubeconfig
MAX_WAIT=300
START=$SECONDS
echo "Waiting for control-plane pods to reach Ready state..."
Expand Down