Skip to content

Make it easy to get the URL of a service. #1139

@iocanel

Description

@iocanel

We need something like:

client.services().inNamespace("ns").withName("myservice").getURL(); 

The implementation of the getURL() should be similar with what is provided by KubernetesHelper.getServiceURL(), but it should be implemented cleanly.

It might make sense to have different strategies for doing service -> url. For example when using openshift-client it might make sense to take Routes into consideration. So, I would use java.util.ServiceLoader to dynamically load the providers of this functionality. It also might make sense each provider to have a toggle and a priority assigned to it.

DSL wise we just need to introduce ServiceResource that will work in the same spririt as PodResource etc.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions