Use `kind export kubeconfig` instead of `scp`
* Use `kind export kubeconfig` instead of `scp`
Followup to
[comment](https://github.com/linkerd/linkerd2/pull/3864#discussion_r360976473)
Stop moving the kubeconfig file between the Github Action env and the
build server with `scp` and use instead `kind export kubeconfig`.
* Replaced deprecated '--loglevel debug' flag with '--verbosity 3'
@@ -313,13 +313,12 @@ jobs:
# retry cluster creation once in case of port conflict or kubeadm failure
if [ "${{ matrix.integration_test }}" == "custom_domain" ]
then
- bin/kind create cluster --name=$KIND_CLUSTER --wait=2m --loglevel debug --config=$CUSTOM_DOMAIN_CONFIG ||
- bin/kind create cluster --name=$KIND_CLUSTER --wait=2m --loglevel debug --config=$CUSTOM_DOMAIN_CONFIG
+ bin/kind create cluster --name=$KIND_CLUSTER --wait=2m --verbosity 3 --config=$CUSTOM_DOMAIN_CONFIG ||
+ bin/kind create cluster --name=$KIND_CLUSTER --wait=2m --verbosity 3 --config=$CUSTOM_DOMAIN_CONFIG
else
- bin/kind create cluster --name=$KIND_CLUSTER --wait=2m --loglevel debug ||
- bin/kind create cluster --name=$KIND_CLUSTER --wait=2m --loglevel debug
+ bin/kind create cluster --name=$KIND_CLUSTER --wait=2m --verbosity 3 ||
+ bin/kind create cluster --name=$KIND_CLUSTER --wait=2m --verbosity 3
fi
- scp $KUBECONFIG linkerd-docker:/tmp
kind_integration:
strategy:
@@ -393,7 +392,7 @@ jobs:
# Restore kubeconfig from remote docker host.
mkdir -p $HOME/.kube
export KUBECONFIG=$HOME/.kube/kind-config-$KIND_CLUSTER
- scp linkerd-docker:/tmp/kind-config-$KIND_CLUSTER $KUBECONFIG
+ bin/kind export kubeconfig --name=$KIND_CLUSTER --kubeconfig $KUBECONFIG
# Start ssh tunnel to allow kubectl to connect via localhost.
export KIND_PORT=$(bin/kubectl config view -o jsonpath="{.clusters[?(@.name=='kind-$KIND_CLUSTER')].cluster.server}" | cut -d':' -f3)
echo "KIND_PORT: $KIND_PORT"
