When upgrading your Kafka operator deployment to a new version, complete the following steps.
Download the CRDs for the new release from the Kafka operator releases page. They are included in the assets of the release.
CAUTION:Hazard of data loss Do not delete the old CRD from the cluster. Deleting the CRD removes your Kafka cluster.
Replace the KafkaCluster CRD with the new one on your cluster by running the following command (replace <versionnumber> with the release you are upgrading to, for example, v0.14.0).
kubectl replace --validate=false -f https://github.com/banzaicloud/kafka-operator/releases/download/<versionnumber>/kafka-operator.crds.yaml
Update the Kafka operator by running:
helm repo update helm upgrade kafka-operator --namespace=kafka banzaicloud-stable/kafka-operator