Skip to content

Make install target is broken because try to install the kustomize when it is installed already #5875

@camilamacedo86

Description

@camilamacedo86

Bug Report

What did you do?

call make install twice

What did you expect to see?

Not fail and just install the kustomize if that is not installed already

What did you see instead? Under which circumstances?

The following error in the second time because the bin is in the dir already

$ make install
/Users/camilamacedo86/go/src/guestbook/bin/controller-gen rbac:roleName=manager-role crd webhook paths="./..." output:crd:artifacts:config=config/crd/bases
curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash -s -- 3.8.7 /Users/camilamacedo86/go/src/guestbook/bin
/Users/camilamacedo86/go/src/guestbook/bin/kustomize exists. Remove it first.
make: *** [Makefile:123: /Users/camilamacedo86/go/src/guestbook/bin/kustomize] Error 1

Environment

Operator type:

/language go
/language ansible
/language helm

$ operator-sdk version

master

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions