Skip to content

Commit 9bc0765

Browse files
authored
feat: Option to have devspaces operator create namespace instead of p… (#2104)
* feat: Option to have devspaces operator create namespace instead of project on OCP Signed-off-by: Anatolii Bazko <abazko@redhat.com>
1 parent c3b2983 commit 9bc0765

13 files changed

Lines changed: 105 additions & 42 deletions

api/v2/checluster_types.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,11 @@ type DefaultNamespace struct {
500500
// +optional
501501
// +kubebuilder:default:=true
502502
AutoProvision *bool `json:"autoProvision,omitempty"`
503+
// For OpenShift clusters only, setting this to `true` creates
504+
// a standard Kubernetes Namespace. When false (default), the OpenShift ProjectRequest API
505+
// is used instead to trigger cluster-specific Project Templates.
506+
// +optional
507+
CreateKubernetesNamespaces *bool `json:"createKubernetesNamespaces,omitempty"`
503508
}
504509

505510
type DashboardHeaderMessage struct {

api/v2/zz_generated.deepcopy.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bundle/next/eclipse-che/manifests/che-operator.clusterserviceversion.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ metadata:
8686
categories: Developer Tools
8787
certified: "false"
8888
containerImage: quay.io/eclipse/che-operator:next
89-
createdAt: "2026-04-09T11:50:19Z"
89+
createdAt: "2026-04-13T08:40:46Z"
9090
description: A Kube-native development solution that delivers portable and collaborative
9191
developer workspaces.
9292
features.operators.openshift.io/cnf: "false"
@@ -108,7 +108,7 @@ metadata:
108108
operatorframework.io/arch.amd64: supported
109109
operatorframework.io/arch.arm64: supported
110110
operatorframework.io/os.linux: supported
111-
name: eclipse-che.v7.117.0-971.next
111+
name: eclipse-che.v7.117.0-972.next
112112
namespace: placeholder
113113
spec:
114114
apiservicedefinitions: {}
@@ -1144,7 +1144,7 @@ spec:
11441144
name: gateway-authorization-sidecar-k8s
11451145
- image: quay.io/che-incubator/header-rewrite-proxy:latest
11461146
name: gateway-header-sidecar
1147-
version: 7.117.0-971.next
1147+
version: 7.117.0-972.next
11481148
webhookdefinitions:
11491149
- admissionReviewVersions:
11501150
- v1

bundle/next/eclipse-che/manifests/org.eclipse.che_checlusters.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16553,6 +16553,12 @@ spec:
1655316553
Indicates if is allowed to automatically create a user namespace.
1655416554
If it set to false, then user namespace must be pre-created by a cluster administrator.
1655516555
type: boolean
16556+
createKubernetesNamespaces:
16557+
description: |-
16558+
For OpenShift clusters only, setting this to `true` creates
16559+
a standard Kubernetes Namespace. When false (default), the OpenShift ProjectRequest API
16560+
is used instead to trigger cluster-specific Project Templates.
16561+
type: boolean
1655616562
template:
1655716563
default: <username>-che
1655816564
description: |-

config/crd/bases/org.eclipse.che_checlusters.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16471,6 +16471,12 @@ spec:
1647116471
Indicates if is allowed to automatically create a user namespace.
1647216472
If it set to false, then user namespace must be pre-created by a cluster administrator.
1647316473
type: boolean
16474+
createKubernetesNamespaces:
16475+
description: |-
16476+
For OpenShift clusters only, setting this to `true` creates
16477+
a standard Kubernetes Namespace. When false (default), the OpenShift ProjectRequest API
16478+
is used instead to trigger cluster-specific Project Templates.
16479+
type: boolean
1647416480
template:
1647516481
default: <username>-che
1647616482
description: |-

deploy/deployment/kubernetes/combined.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16492,6 +16492,12 @@ spec:
1649216492
Indicates if is allowed to automatically create a user namespace.
1649316493
If it set to false, then user namespace must be pre-created by a cluster administrator.
1649416494
type: boolean
16495+
createKubernetesNamespaces:
16496+
description: |-
16497+
For OpenShift clusters only, setting this to `true` creates
16498+
a standard Kubernetes Namespace. When false (default), the OpenShift ProjectRequest API
16499+
is used instead to trigger cluster-specific Project Templates.
16500+
type: boolean
1649516501
template:
1649616502
default: <username>-che
1649716503
description: |-

deploy/deployment/kubernetes/objects/checlusters.org.eclipse.che.CustomResourceDefinition.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16487,6 +16487,12 @@ spec:
1648716487
Indicates if is allowed to automatically create a user namespace.
1648816488
If it set to false, then user namespace must be pre-created by a cluster administrator.
1648916489
type: boolean
16490+
createKubernetesNamespaces:
16491+
description: |-
16492+
For OpenShift clusters only, setting this to `true` creates
16493+
a standard Kubernetes Namespace. When false (default), the OpenShift ProjectRequest API
16494+
is used instead to trigger cluster-specific Project Templates.
16495+
type: boolean
1649016496
template:
1649116497
default: <username>-che
1649216498
description: |-

deploy/deployment/openshift/combined.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16492,6 +16492,12 @@ spec:
1649216492
Indicates if is allowed to automatically create a user namespace.
1649316493
If it set to false, then user namespace must be pre-created by a cluster administrator.
1649416494
type: boolean
16495+
createKubernetesNamespaces:
16496+
description: |-
16497+
For OpenShift clusters only, setting this to `true` creates
16498+
a standard Kubernetes Namespace. When false (default), the OpenShift ProjectRequest API
16499+
is used instead to trigger cluster-specific Project Templates.
16500+
type: boolean
1649516501
template:
1649616502
default: <username>-che
1649716503
description: |-

deploy/deployment/openshift/objects/checlusters.org.eclipse.che.CustomResourceDefinition.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16487,6 +16487,12 @@ spec:
1648716487
Indicates if is allowed to automatically create a user namespace.
1648816488
If it set to false, then user namespace must be pre-created by a cluster administrator.
1648916489
type: boolean
16490+
createKubernetesNamespaces:
16491+
description: |-
16492+
For OpenShift clusters only, setting this to `true` creates
16493+
a standard Kubernetes Namespace. When false (default), the OpenShift ProjectRequest API
16494+
is used instead to trigger cluster-specific Project Templates.
16495+
type: boolean
1649016496
template:
1649116497
default: <username>-che
1649216498
description: |-

helmcharts/next/crds/checlusters.org.eclipse.che.CustomResourceDefinition.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16487,6 +16487,12 @@ spec:
1648716487
Indicates if is allowed to automatically create a user namespace.
1648816488
If it set to false, then user namespace must be pre-created by a cluster administrator.
1648916489
type: boolean
16490+
createKubernetesNamespaces:
16491+
description: |-
16492+
For OpenShift clusters only, setting this to `true` creates
16493+
a standard Kubernetes Namespace. When false (default), the OpenShift ProjectRequest API
16494+
is used instead to trigger cluster-specific Project Templates.
16495+
type: boolean
1649016496
template:
1649116497
default: <username>-che
1649216498
description: |-

0 commit comments

Comments
 (0)