Skip to content

Commit

Permalink
docker4mac 2.0 has changed cluster name to docker-desktop (#115)
Browse files Browse the repository at this point in the history
Signed-off-by: rimas <[email protected]>
  • Loading branch information
rimusz authored and unguiculus committed Feb 22, 2019
1 parent a1528a4 commit d22fd59
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/docker-for-mac/my_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ configure_kubectl() {
port=$(get_apiserver_arg "$apiserver_id" --secure-port)

docker cp "$HOME/.kube" "$testcontainer_id:/root/.kube"
docker exec "$testcontainer_id" kubectl config set-cluster docker-for-desktop-cluster "--server=https://$ip:$port"
docker exec "$testcontainer_id" kubectl config set-cluster docker-for-desktop-cluster --insecure-skip-tls-verify=true
docker exec "$testcontainer_id" kubectl config use-context docker-for-desktop
docker exec "$testcontainer_id" kubectl config set-cluster docker-desktop "--server=https://$ip:$port"
docker exec "$testcontainer_id" kubectl config set-cluster docker-desktop --insecure-skip-tls-verify=true
docker exec "$testcontainer_id" kubectl config use-context docker-desktop
}

run_test() {
Expand Down

0 comments on commit d22fd59

Please sign in to comment.