oomichi / try-kubernetes

12 stars 5 forks source link

Allow to run e2e test for skeleton provider without KUBE_MASTER_IP #80

Closed oomichi closed 2 years ago

oomichi commented 5 years ago

KUBE_MASTER_IP を指定しないで e2e を走らせようとすると以下のように失敗する。

Setting up for KUBERNETES_PROVIDER="skeleton".
Skeleton Provider: prepare-e2e not implemented
KUBE_MASTER_IP:
KUBE_MASTER:
I0328 21:43:07.438281   21149 e2e.go:240] Starting e2e run "1793b089-c19e-442b-8ff6-e887a3180f10" on Ginkgo node 1
Running Suite: Kubernetes e2e suite
===================================
Random Seed: 1553809386 - Will randomize all specs
Will run 2 of 3582 specs

Mar 28 21:43:07.517: INFO: >>> kubeConfig: /home/ubuntu/admin.conf
F0328 21:43:07.520440   21149 e2e.go:80] Error loading client: host must be a URL or a host:port pair: "https://"

Ginkgo ran 1 suite in 910.883382ms
Test Suite Failed

export KUBE_MASTER_IP=192.168.1.122:6443 を実行すれば、回避できる。 conformance のときは指定不要なので(たぶん admin.conf から取って来ている)、改善の余地あり。