mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-10 05:30:26 +00:00
Add /version to server and check it in client.
Will help detect client/version skew and prevent e2e test from passing while running a version other than the one you think it's running.
This commit is contained in:
@@ -106,7 +106,7 @@ APISERVER_PID=$!
|
||||
|
||||
wait_for_url "http://127.0.0.1:${API_PORT}/healthz" "apiserver: "
|
||||
|
||||
KUBE_CMD="${GO_OUT}/kubecfg -h http://127.0.0.1:${API_PORT}"
|
||||
KUBE_CMD="${GO_OUT}/kubecfg -h http://127.0.0.1:${API_PORT} -expect_version_match"
|
||||
|
||||
${KUBE_CMD} list pods
|
||||
echo "kubecfg(pods): ok"
|
||||
@@ -130,4 +130,4 @@ echo "kubecfg(minions): ok"
|
||||
#PROXY_LOG=/tmp/kube-proxy.log
|
||||
#${GO_OUT}/proxy \
|
||||
# --etcd_servers="http://127.0.0.1:${ETCD_PORT}" 1>&2 &
|
||||
#PROXY_PID=$!
|
||||
#PROXY_PID=$!
|
||||
|
Reference in New Issue
Block a user