:_mod-docs-content-type: ASSEMBLY
[id="ztp-updating-gitops"]
= Updating {ztp}
include::_attributes/common-attributes.adoc[]
:context: ztp-updating-gitops

toc::[]

You can update the {ztp-first} infrastructure independently from the hub cluster, {rh-rhacm-first}, and the managed {product-title} clusters.

[NOTE]
====
You can update the {gitops-title} Operator when new versions become available. When updating the {ztp} plugin, review the updated files in the reference configuration and ensure that the changes meet your requirements.
====

include::snippets/pgt-deprecation-notice.adoc[]

[role="_additional-resources"]
.Additional resources

* xref:../edge_computing/policygenerator_for_ztp/ztp-configuring-managed-clusters-policygenerator.adoc#ztp-configuring-managed-clusters-policygenerator[Configuring managed cluster policies by using PolicyGenerator resources]

* xref:../edge_computing/policygenerator_for_ztp/ztp-configuring-managed-clusters-policygenerator.adoc#ztp-comparing-pgt-and-rhacm-pg-patching-strategies_ztp-configuring-managed-clusters-policygenerator[Comparing {rh-rhacm} PolicyGenerator and PolicyGenTemplate resource patching]

include::modules/ztp-updating-gitops-ztp.adoc[leveloffset=+1]

include::modules/ztp-preparing-for-the-gitops-ztp-upgrade.adoc[leveloffset=+1]

include::modules/ztp-labeling-the-existing-clusters.adoc[leveloffset=+1]

include::modules/ztp-stopping-the-existing-gitops-ztp-applications.adoc[leveloffset=+1]

include::modules/ztp-required-changes-to-the-git-repository.adoc[leveloffset=+1]

include::modules/ztp-installing-the-new-gitops-ztp-applications.adoc[leveloffset=+1]

include::modules/ztp-pulling-ocp-images.adoc[leveloffset=+1]

[role="_additional-resources"]
.Additional resources

* xref:../edge_computing/ztp-preparing-the-hub-cluster.adoc#enabling-assisted-installer-service-on-bare-metal_ztp-preparing-the-hub-cluster[Enabling the assisted service]

include::modules/ztp-roll-out-the-configuration-changes.adoc[leveloffset=+1]

[role="_additional-resources"]
.Additional resources

* For information about the {cgu-operator-first}, see xref:../edge_computing/cnf-talm-for-cluster-upgrades.adoc#cnf-about-topology-aware-lifecycle-manager-config_cnf-topology-aware-lifecycle-manager[About the {cgu-operator-full} configuration].

* For information about creating `ClusterGroupUpgrade` CRs, see xref:../edge_computing/policygentemplate_for_ztp/ztp-talm-updating-managed-policies.adoc#talo-precache-autocreated-cgu-for-ztp_ztp-talm[About the auto-created ClusterGroupUpgrade CR for {ztp}].
