6e0fb7fe1b
The test is moved from run.yaml to test.yaml to benefit from the cluster_ip variable that is set at the start of test.yaml. Change-Id: Ia0d1cbac94b6b638b6f410d9647ee1822751a767
52 lines
1.3 KiB
YAML
52 lines
1.3 KiB
YAML
- name: install and start zuul operator
|
|
hosts: all
|
|
tasks:
|
|
- name: Setup CRD
|
|
command: make install
|
|
args:
|
|
chdir: "{{ zuul.projects['opendev.org/zuul/zuul-operator'].src_dir }}"
|
|
|
|
- name: Create required secret
|
|
include_tasks: ./tasks/create_test_secrets.yaml
|
|
|
|
- name: Wait for operator deployment
|
|
command: timeout 8m kubectl rollout status deployment/zuul-operator
|
|
|
|
- name: Deploy CR
|
|
include_tasks: tasks/apply_cr.yaml
|
|
vars:
|
|
spec:
|
|
executor:
|
|
count: 1
|
|
sshkey:
|
|
secretName: executor-ssh-key
|
|
merger:
|
|
count: 1
|
|
scheduler:
|
|
config:
|
|
secretName: zuul-yaml-conf
|
|
launcher:
|
|
config:
|
|
secretName: nodepool-yaml-conf
|
|
connections:
|
|
opendev.org:
|
|
driver: git
|
|
baseurl: https://opendev.org
|
|
externalConfig:
|
|
kubernetes:
|
|
secretName: nodepool-kube-config
|
|
registry:
|
|
count: 1
|
|
preview:
|
|
count: 1
|
|
|
|
- name: Wait for services
|
|
include_tasks: ./tasks/wait_services.yaml
|
|
|
|
- name: Test the cert-manager
|
|
include_tasks: ./tasks/test_cert_manager.yaml
|
|
|
|
# TODO: implement
|
|
# - name: Test the registry
|
|
# include_tasks: ./tasks/test_registry.yaml
|