Skip to content

Commit

Permalink
[makefile] Setting the wasm shim related image for bundle build
Browse files Browse the repository at this point in the history
  • Loading branch information
didierofrivia committed Mar 20, 2023
1 parent 4fe04ad commit 416650b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,16 @@ LIMITADOR_OPERATOR_GITREF = $(LIMITADOR_OPERATOR_BUNDLE_VERSION)
endif
LIMITADOR_OPERATOR_BUNDLE_IMG ?= quay.io/kuadrant/limitador-operator-bundle:$(LIMITADOR_OPERATOR_BUNDLE_IMG_TAG)

## wasm-shim
WASM_SHIM_VERSION ?= latest
shim_version_is_semantic := $(call is_semantic_version,$(WASM_SHIM_VERSION))

ifeq (true,$(shim_version_is_semantic))
RELATED_IMAGE_WASMSHIM=quay.io/kuadrant/wasm-shim:v$(WASM_SHIM_VERSION)
else
RELATED_IMAGE_WASMSHIM=quay.io/kuadrant/wasm-shim:$(WASM_SHIM_VERSION)
endif

all: build

##@ General
Expand Down Expand Up @@ -378,6 +388,7 @@ rm -rf $$TMP_DIR ;\
endef

.PHONY: bundle
bundle: export RELATED_IMAGE_WASMSHIM := $(RELATED_IMAGE_WASMSHIM)
bundle: $(OPM) $(YQ) manifests kustomize operator-sdk ## Generate bundle manifests and metadata, then validate generated files.
$(OPERATOR_SDK) generate kustomize manifests -q
# Set desired operator image
Expand Down

0 comments on commit 416650b

Please sign in to comment.