Skip to content

Commit

Permalink
https://issues.redhat.com/browse/ACM-16062
Browse files Browse the repository at this point in the history
  • Loading branch information
oafischer authored Dec 3, 2024
1 parent 9cb00bc commit b192908
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions clusters/cluster_lifecycle/import_ocp.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -242,17 +242,15 @@ oc –kubeconfig <source_hub_kubeconfig> -n <managed_cluster_name> get <resource
----

. Remove the `ownerReferences` property from the following resources by running the following commands:

+
.. `AgentClusterInstall`

+
[source,bash]
----
yq --in-place -y 'del(.metadata.ownerReferences)' AgentClusterInstall.yaml
----

+
.. `Secret` (`admin-kubeconfig`)

+
[source,bash]
----
Expand All @@ -270,9 +268,9 @@ oc –kubeconfig <target_hub_kubeconfig> delete ManagedCluster <cluster_name>
. Create a namespace on the target hub cluster for the managed cluster. Use a similar name as the source hub cluster.

. Apply your stored resources on the target hub cluster individually by running the following command. Repalce values where needed:

+
*Note:* Replace `<resource_name>.yaml` with `.` if you want to apply all the resources as a group instead of individually.

+
[source,bash]
----
oc –kubeconfig <target_hub_kubeconfig> apply -f <resource_name>.yaml
Expand All @@ -285,4 +283,4 @@ After importing your cluster resources, remove your managed cluster from the sou

. Set the `spec.preserveOnDelete` parameter to `true` in the `ClusterDeployment` custom resource to prevent destroying the managed cluster.

. Complete the steps in xref:../cluster_lifecycle/remove_managed_cluster.adoc#remove-managed-cluster[Removing a cluster from management]
. Complete the steps in xref:../cluster_lifecycle/remove_managed_cluster.adoc#remove-managed-cluster[Removing a cluster from management].

0 comments on commit b192908

Please sign in to comment.