Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Introduce new CheCluster CR field MaxNumberOfRunningWorkspacesPerCluster #1888

Merged
merged 1 commit into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions api/v2/checluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
5 changes: 5 additions & 0 deletions api/v2/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -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: {}
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 8 additions & 0 deletions config/crd/bases/org.eclipse.che_checlusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 8 additions & 0 deletions deploy/deployment/kubernetes/combined.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 8 additions & 0 deletions deploy/deployment/openshift/combined.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading