-
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
Introduce a template-based custom docker server evaluation strategy #4928
Conversation
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/2519/ |
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.
Though I'm considering the code a bit complicated it looks OK to me.
Can you address my line comments and take a look on code coverage of new class. Looks like there is plenty room for coverage improvement.
# The 'docker-local' strategy may be useful if a firewall prevents communication between che-server and | ||
# workspace containers, but will prevent communication when che-server and workspace containers are not | ||
# on the same Docker network. | ||
che.docker.server_evaluation_strategy=default | ||
|
||
|
||
# Here are macros available for the custom server evaluation strategy | ||
# serverName: name of the server exposing the port (like tomcat8, ws-agent, etc) |
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 suppose we use server reference term for that
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.
fixed
# chePort : Che listening port number of workspace master | ||
# wildcardNipDomain : get external address transformed into a nip.io DNS sub-domain | ||
# wildcardXipDomain : get external address transformed into a xip.io DNS sub-domain | ||
che.docker.custom.external.template=<serverName>.<machineName>.<workspaceId>.<wildcardNipDomain>:<chePort> |
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.
Property name should say about it purpose. che.docker.custom
is not clear what means custom. I would suggest che.docker.server_evaluation_strategy.custom
instead.
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.
updated property names according to your remarks
20f242b
to
61c6359
Compare
code coverage of the class is now 100% |
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/2556/ |
@TylerJewell are you ok with the name of the properties ?
|
This custom server evaluation strategy allows to configure the links by providing a set of macro/templates. It avoids to create one strategy class file for each needs, as template/macros can be used independently. Change-Id: I3d941e0e786bdbfec037ba59e3f790f890bf9eb0 Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
Change-Id: Ib2c145c5dc257480b0b31a0e5df17fe6f6a5d480 Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
add more tests Change-Id: I73576a61b1d47470352ece0531f8ac63ebfc755e Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
…er evaluation strategy allows to configure the links by providing a set of macro/templates. It avoids to create one strategy class file for each needs, as template/macros can be used independently. Change-Id: I2c8447255babb36749928bebe73a1f9e8cca4b52 Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
61c6359
to
b4e633f
Compare
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/2562/ |
Are there any changes in current URL format for the Eclipse Che? |
@skabashnyuk I'm not sure to have fully understood the question. You mean, if we don't use this strategy, is that URL to access che is changing ? Or if by using that strategy, URLs to reach workspace agent, etc are changing ? |
Adding doc PR eclipse-che/che-docs#227 |
Thanks for the PR on docs ! |
…clipse-che#4928) * Introduce a custom server evaluation strategy This custom server evaluation strategy allows to configure the links by providing a set of macro/templates. It avoids to create one strategy class file for each needs, as template/macros can be used independently. Change-Id: I3d941e0e786bdbfec037ba59e3f790f890bf9eb0 Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
What does this PR do?
This custom server evaluation strategy allows to configure the links by providing a set of macro/templates.
It avoids to create one strategy class file for each needs, as template/macros can be used independently.
What issues does this PR fix or reference?
#1560
#4361
Changelog
Introduce a template-based docker server evaluation stategy
Release Notes
Introduce a template-based docker server evaluation stategy
Docs PR
eclipse-che/che-docs#227
Change-Id: I3d941e0e786bdbfec037ba59e3f790f890bf9eb0
Signed-off-by: Florent BENOIT fbenoit@codenvy.com