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]
For upgrading Operator to version 0.1.3, the following must be true:
-
The Kubernetes Server version must be at least 1.15, with Beta APIs
-
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.
-
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).
-
Execute the script
pre-upgrade.sh
inside the scripts folder. This script patches thebookkeeper-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 isdefault
)
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