- Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
Description
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.