Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions modules/ztp-preparing-the-hub-cluster-for-ztp.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,38 @@ You can configure the hub cluster with a set of ArgoCD applications that generat

[start=2]
include::snippets/ztp-patch-argocd-hub-cluster.adoc[]


. Optional: If you have existing ArgoCD applications, verify that the `PrunePropagationPolicy=background` policy is set in the `Application` resource by running the following command:
+
--
[source,terminal]
----
$ oc -n openshift-gitops get applications.argoproj.io \
clusters -o jsonpath='{.spec.syncPolicy.syncOptions}' |jq
----

.Example output for an existing policy
[source,terminal]
----
[
"CreateNamespace=true",
"PrunePropagationPolicy=background",
"RespectIgnoreDifferences=true"
]
----
--

.. If the `spec.syncPolicy.syncOption` field does not contain a `PrunePropagationPolicy` parameter or `PrunePropagationPolicy` is set to the `foreground` value, set the policy to `background` in the `Application` resource. See the following example:
+
[source,yaml]
----
kind: Application
spec:
syncPolicy:
syncOptions:
- PrunePropagationPolicy=background
----

+
Setting the `background` deletion policy ensures that the `ManagedCluster` CR and all its associated resources are deleted.