-
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
User can specify project name using openshift ocp.sh. #8154
Conversation
Can one of the admins verify this patch? |
1 similar comment
Can one of the admins verify this patch? |
c1e4488
to
c933553
Compare
The reason why we didn't allow to change project name was that there are some other places where it is hardcoded. To merge that you have to find all impacted places and make sure it will respect ENV |
@riuvshin I have tested it and successfully created a workspace after setting the project name to something else. Will there be conflicts if two are running at the same time by the same user? Is there additional tests I can do? |
Signed-off-by: James Drummond <james@devcomb.com>
c933553
to
9b68307
Compare
@riuvshin I created two different projects named "che-eclipse-che-test" and "che-eclipse-che-test2" and created two different workspaces with the same user. I don't have any issues. The only thing I can think of being an issue is workspace project clean up which I don't know how to do through CLI. I usually have to delete one by one if the che server is deleted improperly. I also have a different user that has it's own che project. I am not using multiuser though so I have to specify different project names. I think another solution is to create a hash in the default project name values for the che server similar to workspaces. Something like |
@JamesDrummond have you tested this in multiuser mode? It may affect multi user |
Will test today. |
Can one of the admins verify this patch? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe it should work fine. What is hardcoded and can't be changed easily is Che route name like here https://github.com/eclipse/che/blob/c46b3e7748276b808f2fe6d55bfcca44bc0a1d58/dockerfiles/init/modules/openshift/files/scripts/che-config#L9
where che
is a route name.
@sleshchenko I don't have an issue keeping the route name which give the url a suffix of |
@riuvshin Tested in multiuser mode. Works great :) |
@riuvshin Can you please review/approve? |
What does this PR do?
User can specify project name using ocp.sh using environment variable CHE_OPENSHIFT_PROJECT.
What issues does this PR fix or reference?
NA
Release Notes
User can specify project name using openshift ocp.sh script.
Signed-off-by: James Drummond james@devcomb.com