-
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
Support for namespace-level configuration of pod tolerations and node selector #20884
Comments
@skabashnyuk we probably need to add the issue to #20830 |
If I look at the new CheCluster draft I would say: spec:
server:
workspacePodNodeSelector:
workspacePodTolerationsJson: |
What about moving workspace related configuration to a dedicated section? spec:
server:
workspace:
podNodeSelector:
podTolerationsJson: or: spec:
workspace:
podNodeSelector:
podTolerationsJson: |
If we're doing configuration on a CR level, we can simply reuse the k8s types in the configurations struct, i.e. make I do think that configuring it in a CR is more straightforward and user-friendly. For DWO, moving to a config CRD instead of a configmap has given us
In terms of scoping, I don't have any real opinion on |
@l0rd do you still want to put configuration under |
I am ok with both. The important thing though is to be consistent: currently workspaces related fields are under |
For |
sync'd to Red Hat JIRA https://issues.redhat.com/browse/CRW-2711 |
Is your task related to a problem? Please describe
As a Eclipse Che admin, I want to be able to set up the configuration of pod tolerations and node selector. Devworkspace operator expected them as k8s namespace annotations:
see more devfile/devworkspace-operator#696
Describe the solution you'd like
Che-operator should grab existing configuration from che-server's env var configuration
CHE_WORKSPACE_POD_NODE__SELECTOR
andCHE_WORKSPACE_POD_TOLERATIONS__JSON
and put them in a format expected by devworkspace operator.Describe alternatives you've considered
n/a
Release Notes Text
It is now possible to specify pod tolerations and node selector for workspaces of a Che instance setting a CustomCheProperty in CheCluster CR. It's not possible to specify that for just one workspace or for one user: it's a global config.
The text was updated successfully, but these errors were encountered: