// Module included in the following assemblies:
//
// assembly-upgrade-resources.adoc

[id='proc-upgrade-kafkaconnector-resources-{context}']
= Upgrading Kafka Connector resources to {ApiVersion}

.Prerequisites

* A Cluster Operator supporting the `{ApiVersion}` API version is up and running.
* `KafkaConnector` custom resources are deployed to manage connector instances. 
See xref:con-creating-managing-connectors-{context}[].

.Procedure
Perform the following steps for each `KafkaConnector` custom resource in your deployment.

. Update the `KafkaConnector` custom resource in an editor.
+
[source,shell,subs="+quotes,attributes"]
----
kubectl edit kafkaconnector _KAFKA-CONNECTOR_
----

. Update the `apiVersion` of the `KafkaConnector` custom resource to `{ApiVersion}`:
+
Replace:
+
[source,shell,subs="attributes"]
----
apiVersion: {KafkaConnectorApiVersionPrev}
----
+
with:
+
[source,shell,subs="attributes"]
----
apiVersion: {KafkaConnectorApiVersion}
----

. Save the file, exit the editor and wait for the updated custom resource to be reconciled.