Skip to content

Commit b6aabbb

Browse files
tolushaclaude
andauthored
procedures: document direct namespace creation on OpenShift (#3049)
* procedures: document direct namespace creation on OpenShift Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix: address vale linting warnings and errors Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix: refine wording in direct namespace creation article Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 18de771 commit b6aabbb

2 files changed

Lines changed: 45 additions & 0 deletions

File tree

modules/administration-guide/nav.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
*** xref:configuring-workspace-target-namespace.adoc[]
4343
*** xref:provisioning-namespaces-in-advance.adoc[]
4444
*** xref:configuring-a-user-namespace.adoc[]
45+
*** xref:configuring-direct-namespace-creation-on-openshift.adoc[]
4546
** xref:configuring-server-components.adoc[]
4647
*** xref:mounting-a-secret-as-a-file-or-an-environment-variable-into-a-container.adoc[]
4748
*** xref:advanced-configuration-options-for-the-che-server-component.adoc[]
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
:_content-type: PROCEDURE
2+
:description: Configuring {prod-short} to create standard {kubernetes} Namespaces directly on {ocp} instead of using the ProjectRequest API
3+
:keywords: administration guide, configuring, namespace, openshift, project, projectrequest
4+
:navtitle: Configuring direct namespace creation on OpenShift
5+
:page-aliases:
6+
7+
[id="configuring-direct-namespace-creation-on-openshift"]
8+
= Configuring direct namespace creation on OpenShift
9+
10+
By default, on {ocp} clusters, {prod-short} uses the ProjectRequest API to create projects. This triggers cluster-specific link:https://docs.openshift.com/container-platform/latest/applications/projects/configuring-project-creation.html[Project Templates], which can apply additional resources or policies.
11+
12+
On {ocp}, you can bypass Project Templates and create standard {kubernetes} Namespaces directly. For example, this is useful when Project Templates introduce unwanted side effects.
13+
14+
.Prerequisites
15+
16+
* An active `{orch-cli}` session with administrative permissions to the destination {orch-name} cluster. See {orch-cli-link}.
17+
18+
.Procedure
19+
20+
. Set the `createNamespaceDirectly` field to `true`:
21+
+
22+
[source,shell,subs="+quotes,+attributes,+macros"]
23+
----
24+
{orch-cli} patch checluster {prod-checluster} \
25+
--namespace {prod-namespace} \
26+
--type merge \
27+
--patch '{
28+
"spec": {
29+
"devEnvironments": {
30+
"defaultNamespace": {
31+
"createNamespaceDirectly": true
32+
}
33+
}
34+
}
35+
}'
36+
----
37+
38+
NOTE: This setting applies only to {ocp} clusters. On {kubernetes} clusters, Namespaces are always created directly regardless of this setting.
39+
40+
.Additional resources
41+
42+
* xref:configuring-namespace-provisioning.adoc[]
43+
* xref:configuring-a-user-namespace.adoc[]
44+
* link:https://docs.openshift.com/container-platform/latest/applications/projects/configuring-project-creation.html[Configuring OpenShift project creation]

0 commit comments

Comments
 (0)