zuul-operator/playbooks/zuul-operator-functional/pre-k8s.yaml
James E. Blair 1b699279a4 Run a git server in k8s for functional tests
To make the functional tests easier to run locally, run a git server
in k8s instead of on the local machine.

Also, update the secret creation to work with kind as well as minikube.

Change-Id: I4c00129c7105405b0f6256e769486e79c0b173fe
2021-07-20 13:19:59 -07:00

31 lines
828 B
YAML

- name: start kubernetes and install all dependencies
hosts: all
roles:
- role: clear-firewall
- role: ensure-pip
- role: ensure-podman
- role: ensure-kubernetes
vars:
minikube_dns_resolvers:
- '1.1.1.1'
- '8.8.8.8'
ensure_kubernetes_minikube_addons:
- ingress
- role: use-buildset-registry
buildset_registry_docker_user: root
post_tasks:
- name: Install openshift client for k8s tasks
command: python3 -m pip install --user openshift
- name: Install websocket
become: true
package:
name:
- python3-websocket
- jq
- name: check kubernetes connection
command: timeout 10s kubectl get pods
register: _api_ready
until: _api_ready.rc == 0
retries: 6
delay: 10