Skip to content

Commit

Permalink
chore(makefile): option to generate bundles with quickstart on ocp (#687
Browse files Browse the repository at this point in the history
) (#689)

Signed-off-by: Thuan Vo <[email protected]>
(cherry picked from commit 04b0fbb)

Co-authored-by: Thuan Vo <[email protected]>
  • Loading branch information
mergify[bot] and tthvo authored Nov 24, 2023
1 parent 21bb38b commit 43fec03
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ IMAGE_TAG_BASE ?= $(IMAGE_NAMESPACE)/$(OPERATOR_NAME)
# Default bundle image tag
BUNDLE_IMG ?= $(IMAGE_TAG_BASE)-bundle:$(BUNDLE_VERSION)
BUNDLE_IMGS ?= $(BUNDLE_IMG)
BUNDLE_MODE ?= k8s

# Default catalog image tag
CATALOG_IMG ?= $(IMAGE_TAG_BASE)-catalog:$(BUNDLE_VERSION)
Expand Down Expand Up @@ -275,6 +276,9 @@ catalog-build: opm ## Build a catalog image.
bundle: manifests kustomize operator-sdk ## Generate bundle manifests and metadata, then validate generated files.
$(OPERATOR_SDK) generate kustomize manifests -q
cd config/manager && $(KUSTOMIZE) edit set image controller=$(OPERATOR_IMG)
ifeq ($(BUNDLE_MODE), ocp)
cd config/manifests && $(KUSTOMIZE) edit add base ../openshift
endif
$(KUSTOMIZE) build config/manifests | $(OPERATOR_SDK) generate bundle $(BUNDLE_GEN_FLAGS)
$(OPERATOR_SDK) bundle validate ./bundle

Expand Down

0 comments on commit 43fec03

Please sign in to comment.