Removing a managed cluster site from the GitOps ZTP pipeline
You can remove a managed site and the associated installation and configuration policy CRs from the GitOps Zero Touch Provisioning (ZTP) pipeline.
-
You have installed the OpenShift CLI (
oc). -
You have logged in to the hub cluster as a user with
cluster-adminprivileges.
-
Remove a site and the associated CRs by removing the associated
ClusterInstanceandPolicyGeneratororPolicyGentemplatefiles from thekustomization.yamlfile. -
Add the following
syncOptionsfield to the ArgoCD application that manages the target site.kind: Application spec: syncPolicy: syncOptions: - PrunePropagationPolicy=backgroundWhen you run the GitOps ZTP pipeline again, the generated CRs are removed.
-
Optional: If you want to permanently remove a site, you should also remove the
ClusterInstanceand site-specificPolicyGeneratororPolicyGentemplatefiles from the Git repository. -
Optional: If you want to remove a site temporarily, for example when redeploying a site, you can leave the
ClusterInstanceand site-specificPolicyGeneratororPolicyGentemplateCRs in the Git repository.