-
Notifications
You must be signed in to change notification settings - Fork 54
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
Volume bound to a namespace and not a workspace #630
Comments
Formal support for this could be provided via devfile/api#374 on the devfile/api side. As for the DevWorkspace Operator, we currently support auto-mounting existing volumes into all DevWorkspaces in a namespace via the automount labels:
|
The issue for documenting the annotations above is progressing: #577 |
so it seems it doesn't work if I want to use these attributes in the devfile.yaml (or a DevWorkspaceTemplate) something like: components:
- name: user-data
volume: {}
attributes:
"controller.devfile.io/something-to-say-i-want-a-user-volume": "user-data"
"controller.devfile.io/mount-path": "/user-data" |
That is correct. The reason behind this is that it blurs the line between workspace-scoped and namespace-scoped resources:
The DevWorkspace Operator is not aware of users in any way, so tracking additional storage is basically limited to DevWorkspaces in a Namespace. The idea is that someone/something that is aware of users can create an appropriate volume for |
Changed the title have namespace instead of use, since DWO technically knows a little about user. |
Closing PR since this is not something we can support further than the current mechanism. Documentation for the existing feature is tracked in #657 |
Description
I would like to be able to get a volume that is bound to my user and not my workspace.
I would like to find my 'user files' in all workspaces
Additional context
For example, pre-populate some volumes when creating the user namespace so data are already there when I need it inside a workspace
I may have 'read-only' mode or 'read-write' mode on those depending on the usecase
The text was updated successfully, but these errors were encountered: