Knative Operator officially releases the manifests at the Github release page and the Operatorhub.io. Please take the following steps to release Knative Operator:
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.
- 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/kustomizeSet 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.0Open a terminal, go to the home directory of the Knative Operator repository. Run the script:
./hack/generate-bundle.shOnce 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.
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/manifeststocommunity-operators/operators/knative-operator. - Modify the
file knative-operator.package.yamlundercommunity-operators/operators/knative-operator, bu changing the fieldcurrentCSVintoknative-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.