Adds abstract class ServerEvaluationStrategy which can be used to change how Che Server communicates with workspace containers. ServerEvaluationStrategy is meant to be extended to modify the behavior of DockerInstanceRuntimeInfo#getServers(). Two implementations of ServerEvaluationStrategy are included: DefaultServerEvaluationStrategy (which is identical to normal getServers() functionality) and LocalDockerServerEvaluationStrategy, which uses internal container addresses for workspace containers and can help in cases where firewall is an issue. Strategies are provided by ServerEvaluationStrategyProvider, which uses the new property che.docker.server_evaluation_strategy to choose which implementation is provided. Signed-off-by: Angel Misevski <amisevsk@redhat.com> |
||
|---|---|---|
| .. | ||
| docs | ||
| manifests | ||
| modules | ||
| Dockerfile | ||
| build.sh | ||
| entrypoint.sh | ||