Skip to content

Commit 6316d9d

Browse files
authored
Merge pull request #35854 from reginapizza/rescott-gitops4.8CrossNamespacePermissionCleanup
Update steps to account for cross-namespace Argo CD permission cleanup
2 parents 25f448d + ba4c7c8 commit 6316d9d

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

modules/gitops-creating-an-application-by-using-the-argo-cd-dashboard.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,7 @@ Directory Recurse:: `checked`
5252
endif::app[]
5353

5454
. Click *Create* to create your application.
55+
56+
. Open the *Administrator* perspective of the web console and navigate to *Administration* -> *Namespaces* in the menu on the left.
57+
58+
. Search for and select the namespace, then enter `argocd.argoproj.io/managed-by=openshift-gitops` in the *Labels* field so that the Argo CD instance in the `openshift-gitops` namespace can manage your namespace.

modules/gitops-creating-an-application-by-using-the-oc-tool.adoc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,20 @@ endif::cluster[]
4747
----
4848
$ oc get application -n openshift-gitops
4949
----
50+
51+
. Add a label to the namespace your application is deployed in so that the Argo CD instance in the `openshift-gitops` namespace can manage it:
52+
53+
ifdef::app[]
54+
+
55+
[source,terminal]
56+
----
57+
$ oc label namespace springpet-clinic argocd.argoproj.io/managed-by=openshift-gitops
58+
----
59+
endif::app[]
60+
ifdef::cluster[]
61+
+
62+
[source,terminal]
63+
----
64+
$ oc label namespace default argocd.argoproj.io/managed-by=openshift-gitops
65+
----
66+
endif::cluster[]

0 commit comments

Comments
 (0)