Skip to content

Commit 039276c

Browse files
authored
Merge pull request #1001 from hj-johannes-lee/fix-bundle
Makefile: fix bundle to be able to be built more than once
2 parents 161b457 + c556a74 commit 039276c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ build: $(cmds)
116116

117117
.PHONY: bundle
118118
bundle:
119+
rm -rf $(BUNDLE_DIR)
119120
mkdir -p $(BUNDLE_DIR)
120121
$(OPERATOR_SDK) generate kustomize manifests -q --input-dir $(OLM_MANIFESTS) --output-dir $(OLM_MANIFESTS) --apis-dir pkg/apis
121122
$(KUSTOMIZE) build $(OLM_MANIFESTS) | sed "s|intel-deviceplugin-operator:devel|intel-deviceplugin-operator:$(OPERATOR_VERSION)|" | $(OPERATOR_SDK) generate bundle -q --overwrite --kustomize-dir $(OLM_MANIFESTS) --version $(OPERATOR_VERSION) $(BUNDLE_METADATA_OPTS) --output-dir .

0 commit comments

Comments
 (0)