Skip to content

Commit

Permalink
Add OpenShift client and copy the kubeconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
praveenkumar committed Dec 3, 2024
1 parent 0139a6c commit 00aaefc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,16 @@ runs:
- name: Setup the crc
shell: bash
run: sudo -su $USER crc setup
- name: Copy OpenShift client
shell: bash
run: sudo cp $USER/.crc/bin/oc/oc /usr/bin/
- name: Start the crc
shell: bash
run: sudo -su $USER crc start
- name: Copy the kubeconfig file to required location
shell: bash
run: |
mkdir -p /home/$USER/.kube/config
cp $USER/.crc/machines/crc/kubeconfig /home/$USER/.kube/config
oc get pods -A

0 comments on commit 00aaefc

Please sign in to comment.