Skip to content

Conversation

@eguzki
Copy link
Member

@eguzki eguzki commented Jun 1, 2021

Install development tools at ${PROJECT_BASE_PATH}/bin. Avoid conflict with the same development tools for different releases required in other working projects.

  • Operator-sdk
  • kustomize
  • controller-gen
  • go-bindata

@eguzki eguzki requested a review from miguelsorianod June 1, 2021 11:58
@eguzki eguzki force-pushed the fix-operator-sdk-release branch from d04d194 to ad87c2d Compare June 1, 2021 12:16
@miguelsorianod
Copy link
Contributor

miguelsorianod commented Jun 1, 2021

Note: go-bindata could not be installed locally as go generate command runs command from annotation and the binary must be found in the $PATH. Usually the project local folders are not included in the system $PATH.

To solve this issue we can update the PATH in the beginning of the Makefile to add the new local bin path with preference over the other directories and export the variable so subprocesses use it

Makefile Outdated

OPERATOR_SDK = $(PROJECT_PATH)/bin/operator-sdk
$(OPERATOR_SDK):
curl -sSL https://github.com/operator-framework/operator-sdk/releases/download/v1.2.0/operator-sdk-v1.2.0-x86_64-linux-gnu -o $(OPERATOR_SDK)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A note here: This will be architecture dependent. If other people are trying to use it from other architectures it will fail.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

It would be good if @krishvoor could test on ppc64le arch

@eguzki eguzki force-pushed the fix-operator-sdk-release branch from 407c12a to 5fdcb8d Compare June 1, 2021 22:47
@qlty-cloud-legacy
Copy link

Code Climate has analyzed commit 5fdcb8d and detected 0 issues on this pull request.

View more on Code Climate.

@eguzki eguzki merged commit 4daa2ec into master Jun 3, 2021
@eguzki eguzki deleted the fix-operator-sdk-release branch June 3, 2021 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants