Commit Graph

15 Commits

Author SHA1 Message Date
Ricky Sadowski
bb6a9eebab fix: use dl.k8s.io, not kubernetes-release bucket
Signed-off-by: Ricky Sadowski <richard.j.sadowski@gmail.com>
2023-05-22 12:50:16 +00:00
Ricky Sadowski
2b1b5a705a [CI/CD] Update Kubernetes version retrieval in kube-init.sh script
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>
2023-05-11 14:27:00 +00:00
KuberDriver
459f4c924d Testing CI without explicit HOME defined 2022-01-12 22:16:44 +00:00
KuberDriver
d45830e317 Updates to migrate from travis CI to GitHub Actions 2021-12-17 21:28:44 +00:00
Patrick J. McNerthney
b1dd9c4f78 Install socat on Kubernetes node for use by port forwarding. 2020-09-08 17:16:17 -10:00
Tomasz Prus
be66f96cdf fix: e2e tests with conntrack required by k8s/minikube 2020-03-28 02:10:38 +01:00
micw523
ab8b903488
Restore latest release of minikube 2019-08-13 14:08:49 -04:00
Haowei Cai
d300fd7809 use minikube 1.2.0 2019-08-08 13:33:56 -07:00
Tomas Tomecek
3543417fb0 kube-init.sh: die is not a command
Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
2019-07-18 09:47:02 +02:00
Oz N Tiram
d7300db66d Don't use latest stable version for minikube
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.
2019-06-25 21:22:31 +02:00
micw523
0bdb65185d
Update minikube version to "latest" 2019-03-26 14:52:16 -05:00
micw523
e63905302f Upgrade Travis CI k8s version 2018-10-30 20:40:26 -05:00
Davanum Srinivas
ebb23b7ca1 Test with latest localkube version
Oops! we are using a really old version, let's switch over to v1.7.0
2017-07-07 13:41:12 -04:00
Davanum Srinivas
353e8ccdc8 Switch to minikube/localkube
* 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
2017-02-09 15:49:04 -05:00
Davanum Srinivas
010af62b76 Add functional test
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
2017-01-12 06:26:16 -05:00