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

install_kustomize.sh returns ./kustomize_v*_linux_amd64.tar.gz: Cannot open: No such file or directory #4268

Closed
yingding opened this issue Nov 5, 2021 · 5 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. triage/duplicate Indicates an issue is a duplicate of other open issue.

Comments

@yingding
Copy link

yingding commented Nov 5, 2021

Describe the bug

I am trying to download v3.2.1 of kustomize using the script from master brauch on 4.Nov 2021. I wasn't able to download the script for my desired version v3.2.1.

Files that can reproduce the issue

Issue can be reproduced by running:

bash install_kustomize.sh 3.2.1

Expected output

Should install the specified version of kustomize in the PWD

Actual output

tar (child): ./kustomize_v*_linux_amd64.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now

Platform

Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.3 LTS
Release:	20.04
Codename:	focal

Additional context
I can not use the latest Kustomize version, since I need the Kustomize V3.2.1 to compile KubeFlow v1.4 and only the Kustomize V3.2.0 and V3.2.1 works. This issue might be related to issue #4130, since when I tried to install V3.2.0, i hit the bug of issue #4130, but with V3.2.1 the error output of this issue report occurs.

@yingding yingding added the kind/bug Categorizes issue or PR as related to a bug. label Nov 5, 2021
@k8s-ci-robot k8s-ci-robot added the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Nov 5, 2021
@k8s-ci-robot
Copy link
Contributor

@yingding: This issue is currently awaiting triage.

SIG CLI takes a lead on issue triage for this repo, but any Kubernetes member can accept issues by applying the triage/accepted label.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@criztovyl
Copy link

Alternatively you could manually download the binary from GitHub Releases here:
3.2.0: https://github.com/kubernetes-sigs/kustomize/releases/tag/v3.2.0
3.2.1: https://github.com/kubernetes-sigs/kustomize/releases/tag/kustomize%2Fv3.2.1

@criztovyl
Copy link

criztovyl commented Nov 7, 2021

Seems install_kustomize.sh only supports v3.3.0+.

up to and including 3.2.0 (but not other 3.2.x, see below!)

opsys=linux  # or darwin, or windows
vers=3.2.0
curl -s https://api.github.com/repos/kubernetes-sigs/kustomize/releases/v$vers |\
  grep browser_download |\
  grep $opsys |\
  cut -d '"' -f 4 |\
  xargs curl -O -L
mv kustomize_*_${opsys}_amd64 kustomize
chmod u+x kustomize

for 3.2.1/.2/.3 use:

# pick one
opsys=linux # or darwin, or windows
vers=3.2.3
curl -s https://api.github.com/repos/kubernetes-sigs/kustomize/releases/kustomize%2Fv$vers |\
  grep browser_download |\
  grep $opsys |\
  cut -d '"' -f 4 |\
  xargs curl -O -L
mv kustomize_kustomize\.v*_${opsys}_amd64 kustomize
chmod u+x kustomize

@KnVerey
Copy link
Contributor

KnVerey commented Jan 19, 2022

Duplicate of #4130, which has a PR open at #4131

/triage duplicate
/close

@k8s-ci-robot k8s-ci-robot added the triage/duplicate Indicates an issue is a duplicate of other open issue. label Jan 19, 2022
@k8s-ci-robot
Copy link
Contributor

@KnVerey: Closing this issue.

In response to this:

Duplicate of #4130, which has a PR open at #4131

/triage duplicate
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. triage/duplicate Indicates an issue is a duplicate of other open issue.
Projects
None yet
Development

No branches or pull requests

4 participants