Skip to content

Commit

Permalink
make: Download macOS-specific operator-sdk binary when running on macOS
Browse files Browse the repository at this point in the history
This just enables fetching the proper OS-specific operator-sdk build for
macOS.
  • Loading branch information
jhrozek committed Aug 17, 2020
1 parent bf551f4 commit 95d5246
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ export OPERATOR_NAMESPACE?=openshift-compliance
# Operator-sdk variables
# ======================
SDK_VERSION?=v0.18.2
OPERATOR_SDK_URL=https://github.com/operator-framework/operator-sdk/releases/download/$(SDK_VERSION)/operator-sdk-$(SDK_VERSION)-x86_64-linux-gnu
ifeq ($(OS_NAME), Linux)
OPERATOR_SDK_URL=https://github.com/operator-framework/operator-sdk/releases/download/$(SDK_VERSION)/operator-sdk-$(SDK_VERSION)-x86_64-linux-gnu
else ifeq ($(OS_NAME), Darwin)
OPERATOR_SDK_URL=https://github.com/operator-framework/operator-sdk/releases/download/$(SDK_VERSION)/operator-sdk-$(SDK_VERSION)-x86_64-apple-darwin
endif

# Test variables
# ==============
Expand Down

0 comments on commit 95d5246

Please sign in to comment.