This commit updates the kube-init.sh script to retrieve the Kubernetes
version using the updated URL: https://dl.k8s.io/release/stable.txt.
The previous URL (https://storage.googleapis.com/kubernetes-release/release/stable.txt)
is no longer valid. This change ensures that the script installs the
correct and up-to-date Kubernetes version by fetching the version
information from the new URL.
Signed-off-by: Ricky Sadowski <richard.j.sadowski@gmail.com>
Sometimes, minikube lags behind kubernetes which can lead
to a breakage of the test suite, since minikube will fail to start
with the latest kubernetes version.
See for example [this issue](https://github.com/kubernetes/minikube/issues/4371).
This change defaults to leave the decision of which k8s version to use,
to minikube itself. This is defined in:
https://github.com/kubernetes/minikube/master/pkg/minikube/constants/constants.go
However, if one really desires it is still possible to pass
`--kubernetes-version=X.Y.Z`
to minikube initialization start command via an environment variable
before invoking the test suite:
export $MINIKUBE_ARGS="--kubernetes-version=X.Y.Z"
This allows ofcourse passing other flags to minikube also.
* Drop the old Kubernetes on docker containers method as it
did not have a SSL enabled port
* Use localkube component from minikube instead. This enables
us to drop the hitch TLS proxy as well.
* E2E tests should be easy to run locally and pick up configuration
from ~/.kube/config
* Consolidate the urls in one spot (base.py), also consolidate the
SkipTest in one spot.
* For local testing, just run minikube and run the py27 or py34 tox
target, that should run all the tests including the e2e tests.
* Fix the connect_post_namespaced_pod_exec and add a e2e test for it
Fixes#122
Port a bunch of tests from python-k8sclient repository. There
is a script that starts a real instance of kubernetes and
the tests are executed against it.
Note, if you just have k8s accessible in your localhost:8080, the
tests still run. so you don't really need to run "py27-functional"
which runs the kube-init.sh
Also, 2 API calls fail currently, i've added a TODO so we can
dig into them and fix them