If you get the following error in the logs of Koperator , update your KafkaCluster CRD. This error typically occurs when you upgrade your Koperator to a new version, but forget to update the KafkaCluster CRD.
Error: UPGRADE FAILED: cannot patch "kafka" with kind KafkaCluster: KafkaCluster.kafka.banzaicloud.io "kafka" is invalid
The recommended way to upgrade Koperator is to upgrade the KafkaCluster CRD, then update Koperator . For details, see Upgrade the operator.