Skip to content

Commit

Permalink
[shiftstack]add missing kubeconfig param
Browse files Browse the repository at this point in the history
... and load .bashrc whle running the ansible-navigator. That's needed
for reading the envvars that will be used for writting the junit report.
  • Loading branch information
rlobillo committed Nov 28, 2024
1 parent 794cc44 commit 738a014
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions roles/shiftstack/tasks/pre_test_shiftstack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

- name: Remove the shiftstackclient pod if exists
kubernetes.core.k8s:
kubeconfig: "{{ cifmw_openshift_kubeconfig }}"
state: absent
api_version: v1
kind: Pod
Expand Down
1 change: 1 addition & 0 deletions roles/shiftstack/tasks/test_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
namespace: "{{ cifmw_shiftstack_client_pod_namespace }}"
pod_name: "{{ cifmw_shiftstack_client_pod_name }}"
command: >-
source .bashrc &&
cd shiftstack-qa &&
ansible-navigator run playbooks/{{ cifmw_shiftstack_run_playbook }} -e @jobs_definitions/{{ testconfig }} -e ocp_cluster_name={{ cifmw_shiftstack_cluster_name }} -e user_cloud={{ cifmw_shiftstack_project_name }}
ansible.builtin.include_tasks: exec_command_in_pod.yml
Expand Down

0 comments on commit 738a014

Please sign in to comment.