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:
@@ -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.
|
||||
@@ -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[]
|
||||
|
||||
Reference in New Issue
Block a user