Skip to content

Commit

Permalink
Execute opm index add with sudo to overcome permissions issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanemerson committed Nov 26, 2021
1 parent 0960532 commit 025938f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,9 @@ endif
.PHONY: catalog-build
## Build a catalog image by adding bundle images to an empty catalog using the operator package manager tool, 'opm'.
catalog-build: opm ## Build a catalog image.
$(OPM) index add --container-tool $(CONTAINER_TOOL) --mode replaces --tag $(CATALOG_IMG) --bundles $(BUNDLE_IMGS) $(FROM_INDEX_OPT)
## Command has to be executed as sudo to overcome https://github.com/operator-framework/operator-registry/issues/870
## that is being encountered with the latest quay.io/operatorhubio/catalog releases
sudo $(OPM) index add --container-tool $(CONTAINER_TOOL) --mode replaces --tag $(CATALOG_IMG) --bundles $(BUNDLE_IMGS) $(FROM_INDEX_OPT)

.PHONY: catalog-push
## Push the catalog image.
Expand Down

0 comments on commit 025938f

Please sign in to comment.