Skip to content

Commit

Permalink
[hack] In order to properly build catalog and bundle for this particular
Browse files Browse the repository at this point in the history
release
  • Loading branch information
didierofrivia committed Oct 26, 2023
1 parent 39b3fcf commit 913310d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,6 @@ bundle: $(OPM) $(YQ) manifests kustomize operator-sdk ## Generate bundle manifes
V="kuadrant-operator.v$(BUNDLE_VERSION)" $(YQ) eval '.metadata.name = strenv(V)' -i config/manifests/bases/kuadrant-operator.clusterserviceversion.yaml
V="$(BUNDLE_VERSION)" $(YQ) eval '.spec.version = strenv(V)' -i config/manifests/bases/kuadrant-operator.clusterserviceversion.yaml
V="$(IMG)" $(YQ) eval '.metadata.annotations.containerImage = strenv(V)' -i config/manifests/bases/kuadrant-operator.clusterserviceversion.yaml
V="kuadrant-operator.v$(REPLACES_VERSION)" $(YQ) eval '.spec.replaces = strenv(V)' -i config/manifests/bases/kuadrant-operator.clusterserviceversion.yaml
# Generate bundle
$(KUSTOMIZE) build config/manifests | $(OPERATOR_SDK) generate bundle -q --overwrite --version $(BUNDLE_VERSION) $(BUNDLE_METADATA_OPTS)
# Update operator dependencies
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,4 @@ spec:
provider:
name: Red Hat
url: https://github.com/Kuadrant/kuadrant-operator
replaces: kuadrant-operator.v0.3.1
version: 0.4.0
2 changes: 1 addition & 1 deletion utils/generate-catalog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,6 @@ cat ${TMP_DIR}/kuadrant-operator-bundle.yaml >> ${CATALOG_FILE}
NAME=`${YQ} eval '.name' ${TMP_DIR}/kuadrant-operator-bundle.yaml` \
REPLACES=kuadrant-operator.v${REPLACES_VERSION} \
CHANNELS=${CHANNELS} \
${YQ} eval '(.entries[0].name = strenv(NAME)) | (.entries[0].replaces = strenv(REPLACES)) | (.name = strenv(CHANNELS))' ${CATALOG_BASEDIR}/kuadrant-operator-channel-entry.yaml >> ${CATALOG_FILE}
${YQ} eval '(.entries[0].name = strenv(NAME)) | (.name = strenv(CHANNELS))' ${CATALOG_BASEDIR}/kuadrant-operator-channel-entry.yaml >> ${CATALOG_FILE}

rm -rf $TMP_DIR

0 comments on commit 913310d

Please sign in to comment.