Skip to content

Commit ef7567b

Browse files
committed
OCPBUGS-37864: Update removing a cluster from the ZTP pipeline
1 parent 4a889cd commit ef7567b

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)