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

[id='proc-upgrade-kafka-user-resources-{context}']
= Upgrading Kafka User resources to {ApiVersion}

.Prerequisites

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

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

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

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

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