Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-3870

[RN] Not possible to limit the number of workspaces per user

XMLWordPrintable

    • Icon: Feature Feature
    • Resolution: Done
    • Icon: Major Major
    • 3.5.0.GA
    • 3.5.0.GA
    • docs
    • False
    • None
    • False
    • Hide
      = Limiting the number of workspaces per user

      With this update, administrators can set a limit on the total number of workspaces, and running workspaces per user by using the following parameters in the `CheCluster` Custom Resource:

      * `spec.devEnvironments.maxNumberOfWorkspacesPerUser`
      * `spec.devEnvironments.maxNumberOfRunningWorkspacesPerUser`

      For example:

      ```
      spec:
        devEnvironments:
          maxNumberOfWorkspacesPerUser: 5
          maxNumberOfRunningWorkspacesPerUser: 2
      ```
      Show
      = Limiting the number of workspaces per user With this update, administrators can set a limit on the total number of workspaces, and running workspaces per user by using the following parameters in the `CheCluster` Custom Resource: * `spec.devEnvironments.maxNumberOfWorkspacesPerUser` * `spec.devEnvironments.maxNumberOfRunningWorkspacesPerUser` For example: ``` spec:   devEnvironments:     maxNumberOfWorkspacesPerUser: 5     maxNumberOfRunningWorkspacesPerUser: 2 ```
    • Enhancement
    • Done

      Synced from eclipse/che issue

      https://github.com/eclipse/che/issues/21860

      Describe the bug

      spec:
        components:
          cheServer:
            extraProperties:
              CHE_LIMITS_USER_WORKSPACES_COUNT: "<kept_workspaces_limit>" 
      

      configuration does not work

      Che version

      7.57@latest

      Steps to reproduce

      Follow the docs for Limiting the number of workspaces that a user can keep https://www.eclipse.org/che/docs/stable/administration&#45;guide/limiting&#45;the&#45;number&#45;of&#45;workspaces&#45;that&#45;a&#45;user&#45;can&#45;keep/

      ERROR: the procedure does not work, user can create unlimited number of workspaces

      Expected behavior

      Introduce new CR property, since it is not expected to configure the limit of DevWorkspace using che-server extraProperties

      devWorkspace:
      totalLimitPerUser: '5'
      runningLimit: '2'

        
      

      In general, I believe we need to consider deprecation and removal of the DevWorksace field from the CR and have the workspace limits configured in DevEnvironments

      Runtime

      OpenShift

      Screenshots

      No response

      Installation method

      OperatorHub

      Environment

      Amazon

      Eclipse Che Logs

      No response

      Additional context

      Outdated docs - https://www.eclipse.org/che/docs/stable/administration&#45;guide/limiting&#45;the&#45;number&#45;of&#45;workspaces&#45;that&#45;a&#45;user&#45;can&#45;keep/

      In general, I believe we need to consider deprecation and removal of the DevWorksace field from the CR and have the workspace limits configured in DevEnvironments

              jvrbkova@redhat.com Jana Vrbkova
              jiralint.codeready Bot Codeready
              Jana Vrbkova Jana Vrbkova
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: