Skip to content

Latest commit

 

History

History
57 lines (41 loc) · 2.9 KB

release.md

File metadata and controls

57 lines (41 loc) · 2.9 KB

Knative Operator Release

Knative Operator officially releases the manifests at the Github release page and the Operatorhub.io. Please take the following steps to release Knative Operator:

Release at the Github

As the lead of the Knative Operation Work group or any other Knative Work Group, create a branch called release-{major}.{minor}, e.g. release-1.3, in the repository of Knative Operator.

Once this new branch is created, Knative Prows will automatically launch the release process and publish the manifests at the release page.

Release at the Operatorhub.io

Prerequisites

  • Install Kustomize via the command:
curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh"  | bash
cp kustomize /usr/local/bin/kustomize

Generate the manifests to be submitted for Operatorhub.io

Set the version variable in the script "hack/generate-bundle.sh" to the version number to be release in the format of major.minor.patch. For example, set the version to 1.3.0 with the following line:

VERSION=1.3.0

Open a terminal, go to the home directory of the Knative Operator repository. Run the script:

./hack/generate-bundle.sh

Once this command is successfully run, a directory called bundle will be generated under the home directory of Knative Operator repository locally. All the manifests under the directory bundle/manifests are all the artifacts to be submitted to the operatorhub.io.

Create a PR for k8s-operatorhub/community-operators

The process to publish a version on OperatorHub is as below:

  • Download the source code of k8s-operatorhub/community-operators.
  • Locate the directory of Knative Operator at community-operators/operators/knative-operator.
  • Create a directory named the new version, like 1.3.0, under community-operators/operators/knative-operator.
  • Copy all the manifests under knative-operator/bundle/manifests to community-operators/operators/knative-operator.
  • Modify the file knative-operator.package.yaml under community-operators/operators/knative-operator, bu changing the field currentCSV into knative-operator.v{major}.{minor}.{patch}, e.g. knative-operator.v1.3.0.
  • Create a PR will all the changes above an submit to the repository k8s-operatorhub/community-operators.

Once the PR is reviewed and merged, Knative Operator of the new version is published in Operatorhub.io.