1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00

Merge pull request #36397 from openshift-cherrypick-robot/cherry-pick-35854-to-enterprise-4.9

[enterprise-4.9] Update steps to account for cross-namespace Argo CD permission cleanup
This commit is contained in:
Vikram Goyal
2021-09-16 04:03:04 +10:00
committed by GitHub
2 changed files with 21 additions and 0 deletions

View File

@@ -52,3 +52,7 @@ Directory Recurse:: `checked`
endif::app[]
. Click *Create* to create your application.
. Open the *Administrator* perspective of the web console and navigate to *Administration* -> *Namespaces* in the menu on the left.
. 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.

View File

@@ -47,3 +47,20 @@ endif::cluster[]
----
$ oc get application -n openshift-gitops
----
. 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:
ifdef::app[]
+
[source,terminal]
----
$ oc label namespace springpet-clinic argocd.argoproj.io/managed-by=openshift-gitops
----
endif::app[]
ifdef::cluster[]
+
[source,terminal]
----
$ oc label namespace default argocd.argoproj.io/managed-by=openshift-gitops
----
endif::cluster[]