Skip to content

Commit

Permalink
Merging pull request 404
Browse files Browse the repository at this point in the history
Signed-off-by: Lukáš Doktor <[email protected]>

* github.com:confidential-containers/operator:
  tests:e2e: Install kustomize from the Go source code
  • Loading branch information
ldoktor committed Aug 5, 2024
2 parents 5e4df70 + 3d04371 commit b63d28e
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions tests/e2e/ansible/install_test_deps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,6 @@
path: bats-core
state: absent
when: bats_exist.rc != 0
- name: Check kustomize is installed
shell: command -v kustomize >/dev/null 2>&1
register: kustomize_exist
ignore_errors: yes
- name: Install kustomize
shell: |
curl -s --retry 3 --retry-delay 10 -u ${USER}:${GITHUB_TOKEN} "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash
cp -f ./kustomize /usr/local/bin
args:
creates: /usr/local/bin/kustomize
retries: 3
delay: 10
when: kustomize_exist.rc != 0
- block:
- name: Download Go tarball
get_url:
Expand All @@ -65,6 +52,20 @@
src: /usr/local/go/bin/go
dest: /usr/local/bin/go
state: link
- block:
- name: Check kustomize is installed
shell: command -v kustomize >/dev/null 2>&1
register: kustomize_exist
ignore_errors: yes
- name: Install kustomize
shell: |
GOBIN=/usr/local/bin GO111MODULE=on go install sigs.k8s.io/kustomize/kustomize/v5@latest
args:
creates: /usr/local/bin/kustomize
retries: 3
delay: 10
when: kustomize_exist.rc != 0

#
# Undo the installation.
#
Expand Down

0 comments on commit b63d28e

Please sign in to comment.