Skip to content

Commit

Permalink
Update kubeconfig path
Browse files Browse the repository at this point in the history
  • Loading branch information
elfiesmelfie committed Dec 18, 2023
1 parent 48da344 commit 51e492c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ci/pre-get_kubeconfig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
cmd: |
oc login -u {{ cifmw_openshift_user }} -p {{ cifmw_openshift_password }} --insecure-skip-tls-verify=true {{ cifmw_openshift_api }}
- name: "Link the kubeconfig file"
ansible.builtin.shell:
cmd: |
mkdir -p {{ cifmw_openshift_kubeconfig | dirname }}
ln -s {{ ansible_env.HOME }}/.kube/config {{ cifmw_openshift_kubeconfig }}
# I need to figure out why the ci_script module is not available in the environment, since the command above is taking the login command out of that.
#- name: "Login into openshift"
# ansible.builtin.include_role:
Expand Down
3 changes: 3 additions & 0 deletions ci/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
cmd: |
ansible-playbook -e@{{ ansible_user_dir }}/ci-framework-data/artifacts/parameters/zuul-params.yml {{ ansible_user_dir }}/login.yml
- name: "Update teh kubeconfig path"
set_fact:
cifmw_openshift_kubeconfig: "/home/zuul/.kube/config"
- name: Check for the kubeconfig file
ansible.builtin.shell:
cmd: |
Expand Down

0 comments on commit 51e492c

Please sign in to comment.