Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion Makefile.bundle
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,21 @@ chmod +x $1 ;\
endef

OPERATORSDK = $(BIN_DIR)/operator-sdk
UNAME_S := $(shell uname -s)
UNAME_M := $(shell uname -m)
OPERATORSDK_OS := linux
OPERATORSDK_ARCH := amd64
ifeq ($(UNAME_S),Darwin)
OPERATORSDK_OS := darwin
endif
ifeq ($(UNAME_M),arm64)
OPERATORSDK_ARCH := arm64
endif
ifeq ($(UNAME_M),aarch64)
OPERATORSDK_ARCH := arm64
endif
operator-sdk: ## Download operator-sdk locally if necessary.
$(call download-tool,$(OPERATORSDK),https://github.com/operator-framework/operator-sdk/releases/download/v1.40.0/operator-sdk_linux_amd64)
$(call download-tool,$(OPERATORSDK),https://github.com/operator-framework/operator-sdk/releases/download/v1.40.0/operator-sdk_$(OPERATORSDK_OS)_$(OPERATORSDK_ARCH))

# Generate bundle manifests and metadata, then validate generated files.
.PHONY: bundle
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ metadata:
"disableDrain": false,
"enableInjector": true,
"enableOperatorWebhook": true,
"logLevel": 2
"logLevel": 2,
"featureGates": {
"resourceInjectorMatchCondition": true
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ metadata:
"disableDrain": false,
"enableInjector": true,
"enableOperatorWebhook": true,
"logLevel": 2
"logLevel": 2,
"featureGates": {
"resourceInjectorMatchCondition": true
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ metadata:
"disableDrain": false,
"enableInjector": true,
"enableOperatorWebhook": true,
"logLevel": 2
"logLevel": 2,
"featureGates": {
"resourceInjectorMatchCondition": true
}
Expand Down