From 64e15dd821633be58d53d45a730b80fd89efcd01 Mon Sep 17 00:00:00 2001 From: Anatolii Bazko Date: Tue, 24 Mar 2026 16:25:54 +0100 Subject: [PATCH] docs: Add article for configuring direct namespace creation on OpenShift Document the new `createNamespaceDirectly` CheCluster CR field that allows administrators to create standard Kubernetes Namespaces directly on OpenShift instead of using the ProjectRequest API. Related: eclipse-che/che-operator#2104 Co-Authored-By: Claude Opus 4.6 --- modules/administration-guide/nav.adoc | 1 + ...irect-namespace-creation-on-openshift.adoc | 52 +++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 modules/administration-guide/pages/configuring-direct-namespace-creation-on-openshift.adoc diff --git a/modules/administration-guide/nav.adoc b/modules/administration-guide/nav.adoc index 6b19ae5c1f..e8c2df46fe 100644 --- a/modules/administration-guide/nav.adoc +++ b/modules/administration-guide/nav.adoc @@ -41,6 +41,7 @@ *** xref:configuring-workspace-target-namespace.adoc[] *** xref:provisioning-namespaces-in-advance.adoc[] *** xref:configuring-a-user-namespace.adoc[] +*** xref:configuring-direct-namespace-creation-on-openshift.adoc[] ** xref:configuring-server-components.adoc[] *** xref:mounting-a-secret-as-a-file-or-an-environment-variable-into-a-container.adoc[] *** xref:advanced-configuration-options-for-the-che-server-component.adoc[] diff --git a/modules/administration-guide/pages/configuring-direct-namespace-creation-on-openshift.adoc b/modules/administration-guide/pages/configuring-direct-namespace-creation-on-openshift.adoc new file mode 100644 index 0000000000..bea08d13be --- /dev/null +++ b/modules/administration-guide/pages/configuring-direct-namespace-creation-on-openshift.adoc @@ -0,0 +1,52 @@ +:_content-type: PROCEDURE +:description: Configuring {prod-short} to create standard {orch-namespace}s directly on OpenShift instead of using the ProjectRequest API +:keywords: administration-guide, configuring, namespace, openshift, project, direct +:navtitle: Configuring direct namespace creation on OpenShift +:page-aliases: + +[id="configuring-direct-namespace-creation-on-openshift"] += Configuring direct namespace creation on OpenShift + +By default, on OpenShift, {prod-short} uses the ProjectRequest API to create user namespaces. This triggers any cluster-specific Project Templates configured by the OpenShift administrator. + +If you want {prod-short} to create standard {orch-namespace}s directly, bypassing the ProjectRequest API and Project Templates, you can enable direct namespace creation. This is useful when Project Templates are not needed or when you want to avoid the overhead of the ProjectRequest workflow. + +NOTE: This setting applies only to OpenShift clusters and has no effect on {orch-name}. + +.Prerequisites + +* An active `{orch-cli}` session with administrative permissions to the OpenShift cluster. See {orch-cli-link}. + +* An existing {prod} installation. + +.Procedure + +. Set the `createNamespaceDirectly` field to `true` in the `spec.devEnvironments.defaultNamespace` section of the CheCluster custom resource. ++ +==== +[source,yaml,subs="+quotes,+attributes"] +---- +kind: CheCluster +apiVersion: org.eclipse.che/v2 +spec: + devEnvironments: + defaultNamespace: + createNamespaceDirectly: true +---- +==== + +.Verification + +* Start a new workspace and verify that the user {orch-namespace} is created as a standard {orch-namespace} rather than an OpenShift Project. ++ +[subs="+attributes,+quotes"] +---- +$ {orch-cli} get namespace ____ -o jsonpath='{.metadata.labels}' +---- ++ +A directly created {orch-namespace} will not contain OpenShift Project-specific labels. + +.Additional resources + +* xref:configuring-namespace-provisioning.adoc[] +* xref:configuring-workspace-target-namespace.adoc[]