Skip to content

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

Merged
tolusha merged 2 commits intomainfrom
CRW-9951
Mar 23, 2026
Merged

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

Conversation

@tolusha
Copy link
Copy Markdown
Contributor

@tolusha tolusha commented Mar 20, 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?

  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:
    cheServer:
      extraProperties:
        CHE_INFRA_OPENSHIFT__DIRECT_NAMESPACE_CREATION: "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.

PR Checklist

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

Release Notes

Reviewers

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

…roject on OCP

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Mar 20, 2026

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@github-actions
Copy link
Copy Markdown

Docker image build succeeded: quay.io/eclipse/che-server:pr-973

kubectl patch command
kubectl patch -n eclipse-che "checluster/eclipse-che" --type=json -p="[{"op": "replace", "path": "/spec/components/cheServer/deployment", "value": {containers: [{image: "quay.io/eclipse/che-server:pr-973", name: che}]}}]"

@tolusha tolusha marked this pull request as ready for review March 20, 2026 15:26
@vinokurig
Copy link
Copy Markdown
Contributor

/retest

…roject on OCP

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
@github-actions
Copy link
Copy Markdown

Docker image build succeeded: quay.io/eclipse/che-server:pr-973

kubectl patch command
kubectl patch -n eclipse-che "checluster/eclipse-che" --type=json -p="[{"op": "replace", "path": "/spec/components/cheServer/deployment", "value": {containers: [{image: "quay.io/eclipse/che-server:pr-973", name: che}]}}]"

@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, vinokurig

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

@openshift-ci openshift-ci Bot added the lgtm label Mar 23, 2026
@tolusha
Copy link
Copy Markdown
Contributor Author

tolusha commented Mar 23, 2026

/retest

1 similar comment
@tolusha
Copy link
Copy Markdown
Contributor Author

tolusha commented Mar 23, 2026

/retest

@tolusha tolusha merged commit 82ad970 into main Mar 23, 2026
29 checks passed
@tolusha tolusha deleted the CRW-9951 branch March 23, 2026 14:36
ribafish added a commit to ribafish/eclipse-che-server that referenced this pull request Apr 2, 2026
* origin/main:
  chore(deps): bump ch.qos.logback.version from 1.5.25 to 1.5.28 (eclipse-che#955)
  Support the deprecated Azure DevOps oauth apps (eclipse-che#985)
  chore: Add null check to the Bitbucket Server URL parser (eclipse-che#983)
  chore(deps-dev): bump org.apache.maven.plugins:maven-source-plugin (eclipse-che#948)
  chore(deps): bump org.testng:testng from 7.8.0 to 7.12.0 (eclipse-che#950)
  chore: Bump to 7.117.0-SNAPSHOT in main (eclipse-che#984)
  Apply Microsoft Azure OIDC Authentication flow (eclipse-che#968)
  feat: Option to have devspaces operator create namespace instead of p… (eclipse-che#973)
  chore: Remove obsolete code (eclipse-che#972)
  chore: Remove obsolete codebase (eclipse-che#971)
  chore(deps): bump com.sun.mail:jakarta.mail from 2.0.1 to 2.0.2 (eclipse-che#935)
  chore: Update fabric8 kubernetes client maven version (eclipse-che#970)
  feat: enable IPv6 support for factory resolver endpoints (eclipse-che#951)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants