Skip to content

Commit 891261c

Browse files
author
Gaurav Nelson
authored
Merge pull request #4765 from gaurav-nelson/ForIssue4147
fixed issue 4147 and added alternative command for provided example.
2 parents d3a4d57 + 317a331 commit 891261c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

admin_guide/managing_projects.adoc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,13 @@ metadata:
200200
...
201201
----
202202

203+
You can also override the default value for an existing project namespace by using the following command:
204+
205+
----
206+
# oc patch namespace myproject -p \
207+
'{"metadata":{"annotations":{"openshift.io/node-selector":"region=infra"}}}'
208+
----
209+
203210
If `openshift.io/node-selector` is set to an empty string (`oc adm new-project
204211
--node-selector=""`), the project will not have an adminstrator-set node
205212
selector, even if the cluster-wide default has been set. This means that, as a
@@ -281,7 +288,6 @@ with this label will not have a maximum of project requests.
281288
to any user that doesn't satisfy the previous two rules. Because rules are evaluated
282289
in order, this rule should be specified last.
283290

284-
285291
[NOTE]
286292
====
287293
xref:../admin_guide/manage_users.adoc#managing-users-managing-user-and-group-labels[Managing

0 commit comments

Comments
 (0)