fix(Makefile): Remove duplicate operator-sdk goal, simplify code#944
fix(Makefile): Remove duplicate operator-sdk goal, simplify code#944olivergondza wants to merge 1 commit intoredhat-developer:masterfrom
Conversation
|
Hi @olivergondza. Thanks for your PR. I'm waiting for a redhat-developer member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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-sigs/prow repository. |
| OPERATOR_SDK = $(shell which operator-sdk) | ||
| endif | ||
| endif | ||
| operator-sdk: $(OPERATOR_SDK) |
There was a problem hiding this comment.
This goal deps are satisfied when user provided existing installation through OPERATOR_SDK, or when they did not, but the file exists in our default location bin/operator-sdk. When neither is the case bin/operator-sdk goal kicks in to perform the install.
236ce0c to
414852f
Compare
|
/ok-to-test |
|
/retest |
414852f to
0731af0
Compare
|
The tests are passing, this is ready for review. |
|
Any comments, objections? |
0731af0 to
7554ca6
Compare
7554ca6 to
efa2837
Compare
The goal was duplicate with similar (but not same) logic - eliminated. The implementation was silently picking operator-sdk when on PATH - must be provided through OPERATOR_SDK now. Element of least astonishment. Conditional Makefile logic removed leveraging native make features. Signed-off-by: Oliver Gondža <ogondza@gmail.com>
efa2837 to
684e1ea
Compare
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@olivergondza: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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-sigs/prow repository. I understand the commands that are listed here. |
What type of PR is this?
/kind cleanup
What does this PR do / why we need it:
The goal was duplicate with similar (but not same) logic - eliminated.
The implementation was silently picking operator-sdk when on PATH - must be provided through OPERATOR_SDK now. Element of least astonishment.
Conditional Makefile logic removed leveraging native make features.
Have you updated the necessary documentation?
Which issue(s) this PR fixes:
None
Test acceptance criteria:
How to test changes / Special notes to the reviewer:
make bundlerm -rf ./bin && make bundlemake OPERATOR_SDK=/bin/operator-sdk bundle# When installed locally