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 fails "cp: can't stat './kustomize': No such file or directory" #5398

Closed
Janny221199 opened this issue Oct 19, 2023 · 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.

Comments

@Janny221199
Copy link

What happened?

I use the kustomize CLI in my gitlab CICD Pipeline. It always worked.

Lately my job fails while installing kustomize. I use the latest version.

Logs of my Gitlab Job:

$ curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh"  | bash
cp: can't stat './kustomize': No such file or directory
Cleaning up project directory and file based variables
ERROR: Job failed: exit code 1

I use the gitlab-runner 16.3.0~beta.108.g2b6048b4 on green-2.saas-linux-small-amd64.runners-manager.gitlab.com/default

I use alpine:3.17.0 as image for my pipeline job

It would be really great if that will work again 👍🏻 If you need any help with that, please let me know!

Thank you very much!!

What did you expect to happen?

Running the installation script properly without any error.

How can we reproduce it (as minimally and precisely as possible)?

.deploy-job:
  image: alpine:3.17.0
  before_script:
    - apk add --no-cache git curl bash
    - curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh"  | bash
    - mv kustomize /usr/local/bin/

Expected output

successful kustomize installation

Actual output

$ curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh"  | bash
cp: can't stat './kustomize': No such file or directory
Cleaning up project directory and file based variables
ERROR: Job failed: exit code 1

Kustomize version

latest

Operating system

Linux

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

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.

@sealneaward
Copy link

This just broke our gitops ci/cd pipelines as well.

@maxdanilov
Copy link

maxdanilov commented Oct 19, 2023

Looks like this issue is introduced by #5220 (PR: #5239): in the .tar.gz release artifacts starting 5.2.0, the kustomize binary is now inside the output directory (previously was in the root)

@natasha41575
Copy link
Contributor

We are aware of the problem and have a fix in flight.

@natasha41575
Copy link
Contributor

This is a duplicate of #5396, so closing.

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.
Projects
None yet
Development

No branches or pull requests

5 participants