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

[id='proc-upgrade-kafka-topic-resources-{context}']
= Upgrading Kafka Topic resources

.Prerequisites

* A Topic Operator supporting the `{ApiVersion}` API version is up and running.

.Procedure
Execute the following steps for each `KafkaTopic` resource in your deployment.

. Update the `KafkaTopic` resource in an editor.
+
[source,shell,subs="+quotes,attributes"]
----
kubectl edit kafkatopic _my-topic_
----

. Replace:
+
[source,shell,subs="attributes"]
----
apiVersion: {KafkaTopicApiVersionPrev}
----
+
with:
+
[source,shell,subs="attributes"]
----
apiVersion:{KafkaTopicApiVersion}
----

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