-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
CHE_LIMITS_USER_WORKSPACES_COUNT Does not work (Che 7.32.2) #20187
Comments
can you provide command execution results from che-server container
|
As requested:
|
Please not that both limits are 1.
are you sure you want to change CHE_LIMITS_USER_WORKSPACES_COUNT not CHE_LIMITS_USER_WORKSPACES_RUN_COUNT ? |
Yes, in this example (this is a dev setup) I wanted to limit the user to only 1 workspace. In this case 'RUN_COUNT' is obviously redundant, but I have tried this out as a temporary workaround to the workspace limit not working. In the production setup these numbers will be different (for instance 3 workspaces but run only 1). |
@donenocode I'm confused. Is this #20187 (comment) result from the environment where 'CHE_LIMITS_USER_WORKSPACES_COUNT' is not working? |
Yes, initially the setup did not have 'CHE_LIMITS_USER_WORKSPACES_RUN_COUNT' set at all. I have only added this to work around the issue of 'CHE_LIMITS_USER_WORKSPACES_COUNT' not working. I wish to limit the number of workspaces that a user can create. I only added the run count setting to test it applied and to see if it had any effect on the number of workspaces that can be created. |
Describe the bug
When Che is deploy via helm method 'CHE_LIMITS_USER_WORKSPACES_COUNT' does not have any effect. Users can continue to create workspaces beyond any limit.
I also note a similar issued logged by a different user that did not appear to be resolved: issue number #16675
I have executed a shell in the Che container to confirm the ENV variables is getting set and can see the ENV variable is getting set as expected, however it doesn't have an effect.
Che version
Steps to reproduce
Expected behavior
User should be denied the ability to create more workspaces.
Runtime
kubectl version
)> kubectl version
Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.7", GitCommit:"1dd5338295409edcfff11505e7bb246f0d325d15", GitTreeState:"clean", BuildDate:"2021-01-13T13:23:52Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.4", GitCommit:"8d8aa39598534325ad77120c120a22b3a990b5ea", GitTreeState:"clean", BuildDate:"2020-03-12T20:55:23Z", GoVersion:"go1.13.8", Compiler:"gc", Platform:"linux/amd64"}
Installation method
chectl server:deploy -m --domain=<MY DOMAIN HERE> -n che --platform=k8s --installer=helm
chectl version
command:chectl/7.32.2 linux-x64 node-v12.22.1
Environment
The text was updated successfully, but these errors were encountered: