Skip to content

Latest commit

 

History

History
86 lines (60 loc) · 3.8 KB

README.md

File metadata and controls

86 lines (60 loc) · 3.8 KB

debezium-operator-manifests

This is a repository of operator bundle manifests for released versions of Debezium operator

Creating new bundle manifests

Following these steps to generate OLM bundle manifest for new Debezium Operator release.

# Change the following
export DEBEZIUM_VERSION="X.Y.Z.Final"

# Change the following (should match maven version for desired release)
# (and commit right away)
./scripts/install-olm-bundle.sh -v $DEBEZIUM_VERSION --commit

# Alternatively you can also add bundle from  local file
# ./scripts/install-olm-bundle.sh -i "$BUNDLE_ZIP" -v $DEBEZIUM_VERSION --commit


# Optional if you also wish to build the test catalog later
# Build and push bundle image 
# (defaults to quay.io/debezium/operator-bundle)
./scripts/create-olm-bundle-image.sh -v "$DEBEZIUM_VERSION" --push

Note: After installing the bundle you should review it for any potential problems and adjust accordingly. In case the changes were also committed, ammend any changes to the latest commit.

Now push the changes and open a PR agaisnt the main branch of manifest repo and all is done.

Creating test catalog

You can build a test OLM catalog index from these operator bundles

Note: while the script uses these manifests files, the bundles included in the catalog have to be published as container images

# Build and push catalog image (assumes bundle images were pushed)
# (defaults to quay.io/debezium/operator-catalog)
./scripts/create-olm-test-catalog.sh \
    -i "$MANIFESTS_REPO_DIR/olm/bundles" \
    -o "$MANIFESTS_REPO_DIR/olm/catalog" \
    --push

Creating new HELM charts

Following these steps to create Helm chart for new Debezium Operator release.

# Change the following (should match maven version for desired release)
export DEBEZIUM_VERSION="X.Y.Z.Final"

# Install chart to helm/charts
# (and commit right away)
./scripts/install-helm-chart.sh -v $DEBEZIUM_VERSION --commit

Note: After installing the chart you should review it for any potential problems and adjust accordingly. In case the changes were also committed, ammend any changes to the latest commit.

Now push the changes and open a PR agaisnt the main branch of manifest repo and all is done. GHA pipeline will create a GH release for new chart and publish it to index available at charts.debezium.io.

Publishing bundles to OperatorHub catalogs

Full documentation is available at OperatorHub.io

Prerequisities:

  1. Version of operator bundle is present in olm/bundles of this repo
  2. Read Contributing Prerequisites and configure your git appropriately
  3. Fork OperatorHub's community operators repo and clone it
  4. Fork OCP OperatorHub's community operators prod repo and clone it

Steps: The code snippet bellow demonstrates the process of publishif $BUDNLE_VERSION to OperatorHub's community catalog

# Change the following
export BUNDLE_VERSION="X.Y.Z-final" 
export REPO_K8_OPERATORS="placeholder" 
export REPO_OKD_OPERATORS="placeholder" 

# Copy the bundle and push changes
./scripts/release-operatorhub.sh  -o $REPO_OKD_OPERATORS -k $REPO_K8_OPERATORS -v "$BUNDLE_VERSION"  --push

Now open a PRs against the main branch of OperatorHub's community operators repo and OCP OperatorHub's community operators prod repo