-
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
Devfile generateName only works in factory URLs #14695
Comments
@amisevsk on a step 3 you mean that you made a POST request to |
According to
I assume that POST /api/workspace/devfile/ works as expected but needs to be rechecked. |
I haven't checked actual API calls yet, I'm mostly working from the dashboard UI. @sleshchenko's description is accurate. |
is there any notion such functionality in k8s
|
|
for update, we could provide similar logic as when creating the workspace
Question is, whether we want to store |
cc @l0rd |
My thought:
+1
We should not. |
I don't really understand the purpose of When using devfiles from the registry (create-workspace tab), the name seems to be ignored and instead gets something like Is |
It's because of Dashboard. But when you use |
Dashboard ignores the devfile's name. It has it's own input field name overriding the devfile value https://github.com/eclipse/che/blob/master/dashboard/src/app/workspaces/create-workspace/create-workspace.controller.ts#L309 |
-1 on not allowing a user to change the name of his workspaces. It would be a functional regression. Does the issue means there are two different devfiles:
The current behavior breaks number of use cases:
|
basically true
yes. Because generateName does not have meaning for existing workspace. It has name which is exact value. If it have
I don't see how it breaks this use-case. You can still extend devfile of existing workspace or extend devfile you'll create workspace with.
It will have exact name as the workspace you've exported, so it will be exactly same workspace with same name.
I don't see much point in copy-pasting whole devfile into existing workspace. Why not create new workspace? |
I can't see any hard technical issues here. We should agree on use-cases we want to support, then we could implement it. |
The validation failure in this issue is caused on frontend validation. Value of name input field is updated with the value from devfile's
I think that last last point would make sense. It would allow user to paste devfile with only |
I'm ok with that. I would also add a gray tip in the name field that explaining that name would be autogenerated from |
We've analyzed the issue and proposed solution. It's in the dashboard area so now @akurinnoy is taking over #15143 (comment). |
I guess it's not actual anymore, and I'm sure it must be fixed by eclipse-che/che-dashboard#22 |
Describe the bug
Currently, devfiles with
generateName
instead ofname
are handled in a somewhat confusing way. If the user passes the devfile through a factory url (/f?url=<>
), the devfile is used to create a workspace with the generated name set as.metadata.name
. However, devfiles with the generateName field cannot be pasted into a workspace config, as generateName is not supported there.Having a feature in the devfile spec that is only valid in some cases is confusing.
Che version
Steps to reproduce
.metadata.name
is setExpected behavior
The same devfile should be able to be passed to Che through all normal methods.
Additional context
#14243 (comment)
The text was updated successfully, but these errors were encountered: