Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions ci/playbooks/kuttl/deploy-deps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,16 @@
{{
zuul.projects[project_name].src_dir
}}
# cifmw_zuul_target_host_env lets a job pass extra env vars (e.g.
# KUTTL_SUITE) into the operator Make targets, so the prep step
# deploys deps for the same suite that kuttl-test-run executes.
environment: >-
{{
{
'KUBECONFIG': cifmw_openshift_kubeconfig,
'PATH': cifmw_path | default(ansible_env.PATH),
} | combine(cifmw_zuul_target_host_env | default({}))
}}
ansible.builtin.command:
cmd: make kuttl-test-prep
chdir: "{{ ansible_user_dir }}/{{ operator_basedir }}"
Expand Down
13 changes: 10 additions & 3 deletions ci/playbooks/kuttl/run-kuttl-from-operator-targets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,16 @@
name: run_hook

- name: run kuttl test suite from operator Makefile
environment:
KUBECONFIG: "{{ cifmw_openshift_kubeconfig }}"
PATH: "{{ cifmw_path | default(ansible_env.PATH) }}"
# cifmw_zuul_target_host_env lets a job pass extra env vars (e.g.
# KUTTL_SUITE) into the operator Make targets. Merge it last so a job
# can override the suite selected by the operator Makefile default.
environment: >-
{{
{
'KUBECONFIG': cifmw_openshift_kubeconfig,
'PATH': cifmw_path | default(ansible_env.PATH),
} | combine(cifmw_zuul_target_host_env | default({}))
}}
ansible.builtin.command:
cmd: make kuttl-test-run
chdir: "{{ ansible_user_dir }}/{{ operator_basedir }}"
Expand Down
Loading