Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests:e2e: Install kustomize from the Go source code #404

Merged
merged 1 commit into from
Aug 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading