File tree 1 file changed +8
-2
lines changed 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -323,8 +323,11 @@ build: test envtest manager docker-build ## Build Operator image
323
323
324
324
325
325
.PHONY : bundle
326
- bundle : manifests install-operator-sdk # # Generate bundle manifests and metadata
326
+ bundle : manifests install-operator-sdk install-yq # # Generate bundle manifests and metadata
327
327
$(KUSTOMIZE ) build config/manifests | $(OPERATOR_SDK ) generate bundle -q --overwrite --version $(PACKAGE_VERSION ) $(BUNDLE_METADATA_OPTS )
328
+ # Workaround for https://github.com/operator-framework/operator-lifecycle-manager/issues/1608
329
+ # See https://github.com/operator-framework/operator-lifecycle-manager/issues/952#issuecomment-639657949
330
+ $(YQ ) e " .spec.install.spec.deployments[0].name = .spec.install.spec.deployments[0].name + \" -v$( OPERATOR_VERSION) \" " -i " bundle/manifests/apicurio-registry-operator.clusterserviceversion.yaml"
328
331
$(OPERATOR_SDK ) bundle validate ./bundle
329
332
330
333
@@ -343,8 +346,11 @@ endif
343
346
344
347
345
348
.PHONY : packagemanifests
346
- packagemanifests : manifests install-operator-sdk # # Generate package manifests
349
+ packagemanifests : manifests install-operator-sdk install-yq # # Generate package manifests
347
350
$(KUSTOMIZE ) build config/manifests | $(OPERATOR_SDK ) generate packagemanifests -q --version $(PACKAGE_VERSION ) $(PACKAGE_MANIFESTS_OPTS )
351
+ # Workaround for https://github.com/operator-framework/operator-lifecycle-manager/issues/1608
352
+ # See https://github.com/operator-framework/operator-lifecycle-manager/issues/952#issuecomment-639657949
353
+ $(YQ ) e " .spec.install.spec.deployments[0].name = .spec.install.spec.deployments[0].name + \" -v$( OPERATOR_VERSION) \" " -i " packagemanifests/$( PACKAGE_VERSION) /apicurio-registry-operator.clusterserviceversion.yaml"
348
354
349
355
350
356
.PHONY : docs
You can’t perform that action at this time.
0 commit comments