Skip to content

Commit

Permalink
workflow: Fix kustomize permission issue
Browse files Browse the repository at this point in the history
Fix kustomize install for non-root user by installing in a local
directory and then using sudo install to put it in /usr/local/bin/

Signed-off-by: stevenhorsman <steven@uk.ibm.com>
  • Loading branch information
stevenhorsman authored and wainersm committed Oct 11, 2024
1 parent 3f2fc95 commit 5d1cbcf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/e2e_libvirt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,8 @@ jobs:
- name: Install kustomize
run: |
command -v kustomize >/dev/null || \
sudo curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | \
bash -s /usr/local/bin
sudo chmod a+x /usr/local/bin/kustomize
sudo curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash
sudo install -o root -g root -m 0755 kustomize /usr/local/bin/kustomize
- name: Checkout KBS Repository
run: |
Expand Down

0 comments on commit 5d1cbcf

Please sign in to comment.