-
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
Propagate Che user informations and preferences to DevWorkspaces #19061
Comments
@benoitf "workspace/user settings" is a technical term in Theia IDE. What you mean is information about the che user and che workspace, right? How about we call it "workspace configuration" for clarity? |
I called it 'che information' like workspace/user settings as it's a che information coming from the Che Rest API. |
What about an idea to put user profile/preference to some CR in user's namespace. Would it be possible from the Theia side to read it directly from CR without having a REST API for it? CC @sleshchenko |
yes, but it's the question who will put that info near DevWorkspace CR. |
We could create such two secrets (separate for user profile and prefereces) that can be reused Che7 based workspaces and Devworkspaces after k8s namespace provisioning. apiVersion: v1
kind: Secret
metadata:
name: che-user-profile
namespace: user1-che
annotations:
che.eclipse.org/automount-workspace-secret: 'true'
che.eclipse.org/mount-path: /che-conf/user/profile
che.eclipse.org/mount-as: file
labels:
controller.devfile.io/mount-to-devworkspace: "true"
app.kubernetes.io/part-of: che.eclipse.org
app.kubernetes.io/component: workspace-secret
type: Opaque
data:
id: id
name: user1
email: user1@site.com apiVersion: v1
kind: Secret
metadata:
name: che-user-preference
namespace: user1-che
annotations:
che.eclipse.org/automount-workspace-secret: 'true'
che.eclipse.org/mount-path: /che-conf/user/preferences
che.eclipse.org/mount-as: file
labels:
controller.devfile.io/mount-to-devworkspace: "true"
app.kubernetes.io/part-of: che.eclipse.org
app.kubernetes.io/component: workspace-secret
type: Opaque
data:
k: v
k2: v2 |
@skabashnyuk looks good to me. A few comments:
|
We thought about that in two contexts
If that is not needed we can make them for devworkspaces only.
That path was selected because of https://github.com/eclipse-che/che-operator/blob/9cfd823f536b69dd44b8ee308750157adba2e258/pkg/deploy/defaults.go#L158. What about
you right for |
My understanding is that even if we create those secrets the devfile v1 to devfile v2 migration would still require users to manually convert the workspaces so I am still skeptical on the value. And I would not invest in devfile v1 workspaces anymore: we should push hard on devfile v2 and deprecate v1 as soon as we have all the features that we need. 👍 to use the path Ack for |
Resolved with eclipse-che/che-server#117 |
Is your task related to a problem? Please describe.
For example:
che-theia will require dashboard URL to display redirect.
But for example this information is not propagated to a workspace (no che api server to reach or no config map having this information)
I would want to grab user information (like che user id/user name/ user email, etc)
Describe the solution you'd like
Have dashboard/che creating configMap with this kind of information
Describe alternatives you've considered
N/A
Additional context
che-theia can't grab information if it's not provided by 3rd party
The text was updated successfully, but these errors were encountered: