Skip to content

Commit

Permalink
Merge pull request ceph#10 from iamniting/bundle
Browse files Browse the repository at this point in the history
makefile: update makefile to add additional SA to csv
  • Loading branch information
openshift-merge-bot[bot] authored Aug 13, 2024
2 parents e5e648b + 2173220 commit ecba5f6
Show file tree
Hide file tree
Showing 20 changed files with 12,938 additions and 7,560 deletions.
13 changes: 11 additions & 2 deletions Makefile.Downstream.mk
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,22 @@ BUNDLE_CHANNELS := --channels=$(CHANNELS)
OPERATOR_SDK ?= $(LOCALBIN)/operator-sdk-$(OPERATOR_SDK_VERSION)
OPERATOR_SDK_VERSION ?= 1.34.1

NAME_PREFIX = ocscsi-

EXTRA_SERVICE_ACCOUNTS := '$(NAME_PREFIX)cephfs-ctrlplugin-sa,$(NAME_PREFIX)cephfs-nodeplugin-sa,$(NAME_PREFIX)rbd-ctrlplugin-sa,$(NAME_PREFIX)rbd-nodeplugin-sa'

.PHONY: bundle
bundle: kustomize operator-sdk manifests
cd config/manager && $(KUSTOMIZE) edit set image controller=$(IMG)
rm -rf bundle
rm -f config/manifests/kustomization.yaml
mkdir -p build dist
cd build && echo "$$BUILD_INSTALLER_OVERLAY" > kustomization.yaml
cd config/manifests/bases && $(KUSTOMIZE) edit add annotation --force 'olm.skipRange':"$(SKIP_RANGE)"
cd config/manifests && $(KUSTOMIZE) create --resources bases,../../build
$(KUSTOMIZE) build config/manifests | $(OPERATOR_SDK) generate bundle \
--overwrite --manifests --metadata --package $(PACKAGE_NAME) --version $(BUNDLE_VERSION) $(BUNDLE_METADATA_OPTS)
--overwrite --manifests --metadata --package $(PACKAGE_NAME) --version $(BUNDLE_VERSION) $(BUNDLE_METADATA_OPTS) \
--extra-service-accounts $(EXTRA_SERVICE_ACCOUNTS)
rm -rf build

.PHONY: bundle-build
bundle-build: bundle ## Build the bundle image.
Expand Down
Loading

0 comments on commit ecba5f6

Please sign in to comment.