Provide support for air gapped env for rally 63/72163/2
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>
Tue, 16 Mar 2021 13:09:29 +0000 (14:09 +0100)
committerCédric Ollivier <cedric.ollivier@orange.com>
Fri, 19 Mar 2021 10:02:34 +0000 (11:02 +0100)
commitfed1358638159c3b7bbbef06ea664eb48155db79
tree1e3b54f5c74abd4b26f37e9d4108ce9d3e815a51
parent09ba8c439b99fe735a70c0b880e9c86a13eb278e
Provide support for air gapped env for rally

Sometimes, tested Kubernetes doesn't have direct access to Internet but
access through repository mirrors.
This patch handles this case for rally test case.

There's two ways for providing the repository mirrors:

- Give an environment variable (`MIRROR_REPO`) which gives a repository
  mirro with all needed images.
- Gives an environment variable per needed repo:
  - `DOCKERHUB_REPO` for DockerHub repository (`docker.io`)
  - `GCR_REPO` for Google Cloud repository (`gcr.io`)
  - `K8S_GCR_REPO` for Kubernetes repository (`k8s.gcr.io`)

Needed images list has also been extracted so Kubernetes administrator can
easily upload these images to the mirror if the mirror also doesn't have
access to Internet.

Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
Change-Id: I2ea6622b79f7e3c3c63c1441c4dab48e9bc4fb1a
(cherry picked from commit b26ac308d4d441195fcd804d4d0ff36356fa8a90)
README.md
functest_kubernetes/ci/download_images.sh
functest_kubernetes/ci/images.txt [new file with mode: 0644]
functest_kubernetes/rally/all-in-one.yaml
functest_kubernetes/rally/rally_kubernetes.py