diff --git a/modules/ztp-preparing-the-hub-cluster-for-ztp.adoc b/modules/ztp-preparing-the-hub-cluster-for-ztp.adoc index 16ec0ef5f1..09c51e3b53 100644 --- a/modules/ztp-preparing-the-hub-cluster-for-ztp.adoc +++ b/modules/ztp-preparing-the-hub-cluster-for-ztp.adoc @@ -19,7 +19,15 @@ $ oc get secret openshift-gitops-cluster -n openshift-gitops -o jsonpath='{.data ---- . Prepare the ArgoCD pipeline configuration: -.. Clone the Git repository. +.. Extract the ArgoCD deployment CRs from the ZTP site generator container using the latest container image version: ++ +[source,terminal] +---- +$ mkdir ztp +$ podman run --rm -v `pwd`/ztp:/mnt/ztp:Z registry.redhat.io/openshift4/ztp-site-generate-rhel8:v4.9.0-1 /bin/bash -c "cp -ar /usr/src/hook/ztp/* /mnt/ztp/" +---- ++ +The remaining steps in this section relate to the `ztp/gitops-subscriptions/argocd/` directory. .. Modify the source values of the two ArgoCD applications, `deployment/clusters-app.yaml` and `deployment/policies-app.yaml` with appropriate URL, `targetRevision` branch, and path values. The path values must match those used in your Git repository. + @@ -53,7 +61,7 @@ spec: syncOptions: - CreateNamespace=true ---- -<1> `path` is the branch that contains the `siteconfig` CRs for the clusters. +<1> `path` is the `ztp/gitops-subscriptions/argocd/` file path that contains the `siteconfig` CRs for the clusters. <2> `repoURL` is the URL of the Git repository that contains the `siteconfig` custom resources that define site configuration for installing clusters. <3> `targetRevision` is the branch on the Git repository that contains the relevant site configuration data. @@ -89,7 +97,7 @@ spec: syncOptions: - CreateNamespace=true ---- -<1> `path` is the branch that contains the `policygentemplates` CRs for the clusters. +<1> `path` is the `ztp/gitops-subscriptions/argocd/` file path that contains the `policygentemplates` CRs for the clusters. <2> `repoURL` is the URL of the Git repository that contains the `policygentemplates` custom resources that specify configuration data for the site. <3> `targetRevision` is the branch on the Git repository that contains the relevant configuration data. @@ -97,5 +105,5 @@ spec: + [source,terminal] ---- -oc apply -k ./deployment +$ oc apply -k ./deployment ----