Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 2.2 KB

operator-upgrade.md

File metadata and controls

39 lines (28 loc) · 2.2 KB

Upgrade Guide

Upgrading till 0.1.2

Bookkeeper operator can be upgraded to a version [VERSION] via helm using the following command

$ helm upgrade [BOOKKEEPER_OPERATOR_RELEASE_NAME] pravega/bookkeeper-operator --version=[VERSION]

Upgrading to 0.1.3

Pre-requisites

For upgrading Operator to version 0.1.3, the following must be true:

  1. The Kubernetes Server version must be at least 1.15, with Beta APIs

  2. Cert-Manager v0.15.0+ or some other certificate management solution must be deployed for managing webhook service certificates. The upgrade trigger script assumes that the user has cert-manager installed but any other cert management solution can also be used and script would need to be modified accordingly. To install cert-manager check this.

  3. Install an Issuer and a Certificate (either self-signed or CA signed) in the same namespace as the Bookkeeper Operator (refer to this manifest to create a self-signed certificate in the default namespace).

  4. Execute the script pre-upgrade.sh inside the scripts folder. This script patches the bookkeeper-webhook-svc with the required annotations and labels. The format of the command is

./pre-upgrade.sh [BOOKKEEPER_OPERATOR_RELEASE_NAME][BOOKKEEPER_OPERATOR_NAMESPACE]

where:

  • [BOOKKEEPER_OPERATOR_RELEASE_NAME] is the release name of the bookkeeper operator deployment
  • [BOOKKEEPER_OPERATOR_NAMESPACE] is the namespace in which the bookkeeper operator has been deployed (this is an optional parameter and its default value is default)

Triggering the upgrade

The upgrade to Operator 0.1.3 can be triggered using the following command

helm upgrade [BOOKKEEPER_OPERATOR_RELEASE_NAME] pravega/bookkeeper-operator --version=0.1.3 --set webhookCert.certName=[CERT_NAME] --set webhookCert.secretName=[SECRET_NAME]

where:

  • [CERT_NAME] is the name of the certificate that has been created
  • [SECRET_NAME] is the name of the secret created by the above certificate