Skip to content

feat: Option to have devspaces operator create namespace instead of p…#2104

Merged
tolusha merged 8 commits intomainfrom
CRW-9951
Apr 14, 2026
Merged

feat: Option to have devspaces operator create namespace instead of p…#2104
tolusha merged 8 commits intomainfrom
CRW-9951

Conversation

@tolusha
Copy link
Copy Markdown
Contributor

@tolusha tolusha commented Mar 23, 2026

…roject on OCP

What does this PR do?

Option to have devspaces operator create namespace instead of project on OCP

Screenshot/screencast of this PR

N/A

What issues does this PR fix or reference?

https://issues.redhat.com/browse/CRW-9951

How to test this PR?

How to test this PR?

  1. Create a project template
apiVersion: template.openshift.io/v1
kind: Template
metadata:
  name: project-request
  namespace: openshift-config
objects:
  - apiVersion: project.openshift.io/v1
    kind: Project
    metadata:
      name: ${PROJECT_NAME}
  - apiVersion: v1
    kind: ConfigMap
    metadata:
      name: welcome-config-map
      namespace: '${PROJECT_NAME}'
    data:
      welcome_message: Welcome to your new OpenShift Project
parameters:
- name: PROJECT_NAME
- name: PROJECT_DISPLAYNAME
- name: PROJECT_DESCRIPTION
- name: PROJECT_ADMIN
- name: PROJECT_REQUESTING_USER
  1. Update project config
apiVersion: config.openshift.io/v1
kind: Project
metadata:
  name: cluster
spec:
  projectRequestTemplate:
    name: project-request
  1. Deploy Eclipse Che with a custom che image and configured CheCluster CR
spec:
  components:
    devEnvironments:
      defaultNamespace:
        createKubernetesNamespaces: true
  1. Create any project in OpenShift, ensure that configmap welcome-config-map is created as well
  2. Login in into Eclipse Che
  3. Check a user project, ensure that welcome-config-map is NOT created.

Common Test Scenarios

  • Deploy Eclipse Che
  • Start an empty workspace
  • Open terminal and build/run an image
  • Stop a workspace
  • Check operator logs for reconciliation errors or infinite reconciliation loops

PR Checklist

As the author of this Pull Request I made sure that:

Reviewers

Reviewers, please comment how you tested the PR when approving it.

@openshift-ci
Copy link
Copy Markdown

openshift-ci bot commented Mar 23, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: rohanKanojia, tolusha

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tolusha
Copy link
Copy Markdown
Contributor Author

tolusha commented Mar 23, 2026

Hello @cgruver
I added an option to directly create a namespace instead o using project request API.
Could you have a look pls, may be you have a better naming?

@openshift-ci openshift-ci bot removed the lgtm label Mar 24, 2026
@openshift-ci
Copy link
Copy Markdown

openshift-ci bot commented Mar 24, 2026

New changes are detected. LGTM label has been removed.

@tolusha
Copy link
Copy Markdown
Contributor Author

tolusha commented Mar 24, 2026

/retest

tolusha added a commit to eclipse-che/che-docs that referenced this pull request Mar 24, 2026
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 <noreply@anthropic.com>
tolusha added a commit to eclipse-che/che-docs that referenced this pull request Mar 25, 2026
Document the new `createNamespaceDirectly` CheCluster CR option that allows
creating standard Kubernetes namespaces instead of using the OpenShift
ProjectRequest API.

Related: eclipse-che/che-operator#2104

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
tolusha added a commit to eclipse-che/che-docs that referenced this pull request Mar 25, 2026
Add a procedure article documenting the new `createNamespaceDirectly`
CheCluster CR option that allows administrators to configure Che to
create standard Kubernetes Namespaces instead of using the OpenShift
ProjectRequest API.

Source: eclipse-che/che-operator#2104

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
tolusha added a commit to eclipse-che/che-docs that referenced this pull request Mar 25, 2026
Add a procedure article for the new `createNamespaceDirectly` CheCluster CR
field that allows administrators to bypass the OpenShift ProjectRequest API
and create standard Kubernetes Namespaces directly for user workspaces.

Related: eclipse-che/che-operator#2104

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
tolusha added 8 commits April 13, 2026 10:39
…roject on OCP

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
…roject on OCP

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
@tolusha tolusha marked this pull request as draft April 13, 2026 08:50
@tolusha tolusha marked this pull request as ready for review April 13, 2026 09:23
@tolusha tolusha closed this Apr 13, 2026
@tolusha tolusha reopened this Apr 13, 2026
@tolusha tolusha marked this pull request as draft April 13, 2026 12:16
@tolusha tolusha marked this pull request as ready for review April 13, 2026 12:16
@tolusha tolusha merged commit 9bc0765 into main Apr 14, 2026
48 of 49 checks passed
@tolusha tolusha deleted the CRW-9951 branch April 14, 2026 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants