Skip to content

Commit 6ecf39d

Browse files
authored
Merge pull request #80415 from amolnar-rh/OCPBUGS-38416
OCPBUGS-38416: Update detaching seed sno cluster via GitOps ZTP
2 parents c6841ce + 3a64c4c commit 6ecf39d

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

modules/cnf-image-based-upgrade-generate-seed-image.adoc

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ $ oc delete managedcluster sno-worker-example
3333

3434
... Wait until the `ManagedCluster` CR is removed. After the CR is removed, create the proper `SeedGenerator` CR. The {lcao} cleans up the {rh-rhacm} artifacts.
3535

36-
.. If you are using {ztp}, detach your cluster by removing the seed cluster's `SiteConfig` CR from the `kustomization.yaml`:
36+
.. If you are using {ztp}, detach your cluster by removing the seed cluster's `SiteConfig` CR from the `kustomization.yaml`.
3737

38-
... Remove your seed cluster's `SiteConfig` CR from the `kustomization.yaml`.
38+
... If you have a `kustomization.yaml` file that references multiple `SiteConfig` CRs, remove your seed cluster's `SiteConfig` CR from the `kustomization.yaml`:
3939
+
4040
[source,yaml]
4141
----
@@ -48,7 +48,17 @@ generators:
4848
- example-target-sno3.yaml
4949
----
5050

51-
... Commit the `kustomization.yaml` changes in your Git repository and push the changes.
51+
... If you have a `kustomization.yaml` that references one `SiteConfig` CR, remove your seed cluster's `SiteConfig` CR from the `kustomization.yaml` and add the `generators: {}` line:
52+
+
53+
[source,yaml]
54+
----
55+
apiVersion: kustomize.config.k8s.io/v1beta1
56+
kind: Kustomization
57+
58+
generators: {}
59+
----
60+
61+
... Commit the `kustomization.yaml` changes in your Git repository and push the changes to your repository.
5262
+
5363
The ArgoCD pipeline detects the changes and removes the managed cluster.
5464

0 commit comments

Comments
 (0)