diff --git a/api/v2/checluster_types.go b/api/v2/checluster_types.go index 3bd14996e..773e663bc 100644 --- a/api/v2/checluster_types.go +++ b/api/v2/checluster_types.go @@ -182,6 +182,12 @@ type CheClusterDevEnvironments struct { // +kubebuilder:validation:Minimum:=-1 // +optional MaxNumberOfRunningWorkspacesPerUser *int64 `json:"maxNumberOfRunningWorkspacesPerUser,omitempty"` + // The maximum number of concurrently running workspaces across the entire Kubernetes cluster. + // This applies to all users in the system. If the value is set to -1, it means there is + // no limit on the number of running workspaces. + // +kubebuilder:validation:Minimum:=-1 + // +optional + MaxNumberOfRunningWorkspacesPerCluster *int64 `json:"maxNumberOfRunningWorkspacesPerCluster,omitempty"` // User configuration. // +optional User *UserConfiguration `json:"user,omitempty"` diff --git a/api/v2/zz_generated.deepcopy.go b/api/v2/zz_generated.deepcopy.go index 1bdffdf81..784f77f29 100644 --- a/api/v2/zz_generated.deepcopy.go +++ b/api/v2/zz_generated.deepcopy.go @@ -297,6 +297,11 @@ func (in *CheClusterDevEnvironments) DeepCopyInto(out *CheClusterDevEnvironments *out = new(int64) **out = **in } + if in.MaxNumberOfRunningWorkspacesPerCluster != nil { + in, out := &in.MaxNumberOfRunningWorkspacesPerCluster, &out.MaxNumberOfRunningWorkspacesPerCluster + *out = new(int64) + **out = **in + } if in.User != nil { in, out := &in.User, &out.User *out = new(UserConfiguration) diff --git a/bundle/next/eclipse-che/manifests/che-operator.clusterserviceversion.yaml b/bundle/next/eclipse-che/manifests/che-operator.clusterserviceversion.yaml index f46ad5d6b..40e5af03b 100644 --- a/bundle/next/eclipse-che/manifests/che-operator.clusterserviceversion.yaml +++ b/bundle/next/eclipse-che/manifests/che-operator.clusterserviceversion.yaml @@ -104,7 +104,7 @@ metadata: operators.operatorframework.io/project_layout: go.kubebuilder.io/v3 repository: https://github.com/eclipse-che/che-operator support: Eclipse Foundation - name: eclipse-che.v7.90.0-879.next + name: eclipse-che.v7.91.0-880.next namespace: placeholder spec: apiservicedefinitions: {} @@ -1035,7 +1035,7 @@ spec: minKubeVersion: 1.19.0 provider: name: Eclipse Foundation - version: 7.90.0-879.next + version: 7.91.0-880.next webhookdefinitions: - admissionReviewVersions: - v1 diff --git a/bundle/next/eclipse-che/manifests/org.eclipse.che_checlusters.yaml b/bundle/next/eclipse-che/manifests/org.eclipse.che_checlusters.yaml index ec056d546..5fa0479ce 100644 --- a/bundle/next/eclipse-che/manifests/org.eclipse.che_checlusters.yaml +++ b/bundle/next/eclipse-che/manifests/org.eclipse.che_checlusters.yaml @@ -7028,6 +7028,14 @@ spec: - IfNotPresent - Never type: string + maxNumberOfRunningWorkspacesPerCluster: + description: |- + The maximum number of concurrently running workspaces across the entire Kubernetes cluster. + This applies to all users in the system. If the value is set to -1, it means there is + no limit on the number of running workspaces. + format: int64 + minimum: -1 + type: integer maxNumberOfRunningWorkspacesPerUser: description: |- The maximum number of running workspaces per user. diff --git a/config/crd/bases/org.eclipse.che_checlusters.yaml b/config/crd/bases/org.eclipse.che_checlusters.yaml index b97a66f29..61b49a608 100644 --- a/config/crd/bases/org.eclipse.che_checlusters.yaml +++ b/config/crd/bases/org.eclipse.che_checlusters.yaml @@ -6981,6 +6981,14 @@ spec: - IfNotPresent - Never type: string + maxNumberOfRunningWorkspacesPerCluster: + description: |- + The maximum number of concurrently running workspaces across the entire Kubernetes cluster. + This applies to all users in the system. If the value is set to -1, it means there is + no limit on the number of running workspaces. + format: int64 + minimum: -1 + type: integer maxNumberOfRunningWorkspacesPerUser: description: |- The maximum number of running workspaces per user. diff --git a/deploy/deployment/kubernetes/combined.yaml b/deploy/deployment/kubernetes/combined.yaml index d884aea4c..6b81f9bd0 100644 --- a/deploy/deployment/kubernetes/combined.yaml +++ b/deploy/deployment/kubernetes/combined.yaml @@ -7002,6 +7002,14 @@ spec: - IfNotPresent - Never type: string + maxNumberOfRunningWorkspacesPerCluster: + description: |- + The maximum number of concurrently running workspaces across the entire Kubernetes cluster. + This applies to all users in the system. If the value is set to -1, it means there is + no limit on the number of running workspaces. + format: int64 + minimum: -1 + type: integer maxNumberOfRunningWorkspacesPerUser: description: |- The maximum number of running workspaces per user. diff --git a/deploy/deployment/kubernetes/objects/checlusters.org.eclipse.che.CustomResourceDefinition.yaml b/deploy/deployment/kubernetes/objects/checlusters.org.eclipse.che.CustomResourceDefinition.yaml index 9323b0b10..8e1ce3f81 100644 --- a/deploy/deployment/kubernetes/objects/checlusters.org.eclipse.che.CustomResourceDefinition.yaml +++ b/deploy/deployment/kubernetes/objects/checlusters.org.eclipse.che.CustomResourceDefinition.yaml @@ -6997,6 +6997,14 @@ spec: - IfNotPresent - Never type: string + maxNumberOfRunningWorkspacesPerCluster: + description: |- + The maximum number of concurrently running workspaces across the entire Kubernetes cluster. + This applies to all users in the system. If the value is set to -1, it means there is + no limit on the number of running workspaces. + format: int64 + minimum: -1 + type: integer maxNumberOfRunningWorkspacesPerUser: description: |- The maximum number of running workspaces per user. diff --git a/deploy/deployment/openshift/combined.yaml b/deploy/deployment/openshift/combined.yaml index 2a531ce57..65dd51e89 100644 --- a/deploy/deployment/openshift/combined.yaml +++ b/deploy/deployment/openshift/combined.yaml @@ -7002,6 +7002,14 @@ spec: - IfNotPresent - Never type: string + maxNumberOfRunningWorkspacesPerCluster: + description: |- + The maximum number of concurrently running workspaces across the entire Kubernetes cluster. + This applies to all users in the system. If the value is set to -1, it means there is + no limit on the number of running workspaces. + format: int64 + minimum: -1 + type: integer maxNumberOfRunningWorkspacesPerUser: description: |- The maximum number of running workspaces per user. diff --git a/deploy/deployment/openshift/objects/checlusters.org.eclipse.che.CustomResourceDefinition.yaml b/deploy/deployment/openshift/objects/checlusters.org.eclipse.che.CustomResourceDefinition.yaml index 0840348de..e22a21342 100644 --- a/deploy/deployment/openshift/objects/checlusters.org.eclipse.che.CustomResourceDefinition.yaml +++ b/deploy/deployment/openshift/objects/checlusters.org.eclipse.che.CustomResourceDefinition.yaml @@ -6997,6 +6997,14 @@ spec: - IfNotPresent - Never type: string + maxNumberOfRunningWorkspacesPerCluster: + description: |- + The maximum number of concurrently running workspaces across the entire Kubernetes cluster. + This applies to all users in the system. If the value is set to -1, it means there is + no limit on the number of running workspaces. + format: int64 + minimum: -1 + type: integer maxNumberOfRunningWorkspacesPerUser: description: |- The maximum number of running workspaces per user. diff --git a/helmcharts/next/crds/checlusters.org.eclipse.che.CustomResourceDefinition.yaml b/helmcharts/next/crds/checlusters.org.eclipse.che.CustomResourceDefinition.yaml index 9323b0b10..8e1ce3f81 100644 --- a/helmcharts/next/crds/checlusters.org.eclipse.che.CustomResourceDefinition.yaml +++ b/helmcharts/next/crds/checlusters.org.eclipse.che.CustomResourceDefinition.yaml @@ -6997,6 +6997,14 @@ spec: - IfNotPresent - Never type: string + maxNumberOfRunningWorkspacesPerCluster: + description: |- + The maximum number of concurrently running workspaces across the entire Kubernetes cluster. + This applies to all users in the system. If the value is set to -1, it means there is + no limit on the number of running workspaces. + format: int64 + minimum: -1 + type: integer maxNumberOfRunningWorkspacesPerUser: description: |- The maximum number of running workspaces per user.