Skip to content

Commit f89094e

Browse files
authored
Merge pull request #84203 from amolnar-rh/OCPBUGS-37864
OCPBUGS-37864: Update removing a cluster from the ZTP pipeline
2 parents 683f31c + ef7567b commit f89094e

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

modules/ztp-site-cleanup.adoc

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,20 @@ You can remove a managed site and the associated installation and configuration
1717
.Procedure
1818

1919
. Remove a site and the associated CRs by removing the associated `SiteConfig` and `PolicyGenerator` or `PolicyGentemplate` files from the `kustomization.yaml` file.
20+
21+
. Add the following `syncOptions` field to your `SiteConfig` application.
22+
+
23+
[source,yaml]
24+
----
25+
kind: Application
26+
spec:
27+
syncPolicy:
28+
syncOptions:
29+
- PrunePropagationPolicy=background
30+
----
2031
+
2132
When you run the {ztp} pipeline again, the generated CRs are removed.
2233

2334
. Optional: If you want to permanently remove a site, you should also remove the `SiteConfig` and site-specific `PolicyGenerator` or `PolicyGentemplate` files from the Git repository.
2435

25-
. Optional: If you want to remove a site temporarily, for example when redeploying a site, you can leave the `SiteConfig` and site-specific `PolicyGenerator` or `PolicyGentemplate` CRs in the Git repository.
36+
. Optional: If you want to remove a site temporarily, for example when redeploying a site, you can leave the `SiteConfig` and site-specific `PolicyGenerator` or `PolicyGentemplate` CRs in the Git repository.

0 commit comments

Comments
 (0)