Configuring direct namespace creation on OpenShift Container Platform
By default, on OpenShift Container Platform clusters, Che uses the OpenShift ProjectRequest API to create user namespaces. The ProjectRequest API triggers any cluster-specific Project Templates configured by the cluster administrator.
If you want Che to create standard Kubernetes namespaces directly, bypassing the ProjectRequest API and its associated Project Templates, you can enable the createNamespaceDirectly option.
-
An active
chectlsession with administrative permissions to the destination OpenShift Container Platform cluster. See Installing the chectl management tool.
-
Configure the
CheClusterCustom Resource. See Using the CLI to configure the CheCluster Custom Resource.spec: devEnvironments: defaultNamespace: createNamespaceDirectly: true
-
Start a workspace and verify that Che creates a standard Kubernetes namespace instead of an OpenShift Container Platform project.