public class URLFromServiceUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_PROTO |
static org.slf4j.Logger |
logger |
Modifier and Type | Method and Description |
---|---|
static String |
getNamespace(io.fabric8.kubernetes.api.model.HasMetadata entity) |
static Map<String,String> |
getOrCreateAnnotations(io.fabric8.kubernetes.api.model.HasMetadata entity) |
static io.fabric8.kubernetes.api.model.ObjectMeta |
getOrCreateMetadata(io.fabric8.kubernetes.api.model.HasMetadata entity) |
static io.fabric8.kubernetes.api.model.ServicePort |
getServicePortByName(io.fabric8.kubernetes.api.model.Service service,
String portName) |
static String |
getURLFromIngressList(List<io.fabric8.kubernetes.api.model.extensions.Ingress> ingressList,
String namespace,
String serviceName,
io.fabric8.kubernetes.api.model.ServicePort port) |
static String |
getURLFromIngressRules(List<io.fabric8.kubernetes.api.model.extensions.HTTPIngressPath> paths,
io.fabric8.kubernetes.api.model.extensions.IngressSpec spec,
String serviceName,
io.fabric8.kubernetes.api.model.ServicePort port,
io.fabric8.kubernetes.api.model.extensions.IngressRule rule) |
static String |
getURLFromIngressSpec(io.fabric8.kubernetes.api.model.extensions.IngressSpec spec,
String serviceName,
io.fabric8.kubernetes.api.model.ServicePort port) |
static String |
getURLFromTLSHost(io.fabric8.kubernetes.api.model.extensions.IngressRule rule,
String pathPostFix) |
static String |
resolveHostFromEnvVarOrSystemProperty(String serviceName) |
static String |
resolvePortFromEnvVarOrSystemProperty(String serviceName,
String portName) |
static String |
resolveProtocolFromEnvVarOrSystemProperty(String serviceName,
String servicePort) |
static String |
toEnvVariable(String serviceName) |
static String |
toServicePortEnvironmentVariable(String serviceName,
String portName) |
public static final org.slf4j.Logger logger
public static final String DEFAULT_PROTO
public static String resolveHostFromEnvVarOrSystemProperty(String serviceName)
public static String resolveProtocolFromEnvVarOrSystemProperty(String serviceName, String servicePort)
public static Map<String,String> getOrCreateAnnotations(io.fabric8.kubernetes.api.model.HasMetadata entity)
public static io.fabric8.kubernetes.api.model.ObjectMeta getOrCreateMetadata(io.fabric8.kubernetes.api.model.HasMetadata entity)
public static String resolvePortFromEnvVarOrSystemProperty(String serviceName, String portName)
public static String toServicePortEnvironmentVariable(String serviceName, String portName)
public static String getURLFromIngressList(List<io.fabric8.kubernetes.api.model.extensions.Ingress> ingressList, String namespace, String serviceName, io.fabric8.kubernetes.api.model.ServicePort port)
public static String getURLFromIngressSpec(io.fabric8.kubernetes.api.model.extensions.IngressSpec spec, String serviceName, io.fabric8.kubernetes.api.model.ServicePort port)
public static String getURLFromIngressRules(List<io.fabric8.kubernetes.api.model.extensions.HTTPIngressPath> paths, io.fabric8.kubernetes.api.model.extensions.IngressSpec spec, String serviceName, io.fabric8.kubernetes.api.model.ServicePort port, io.fabric8.kubernetes.api.model.extensions.IngressRule rule)
public static String getURLFromTLSHost(io.fabric8.kubernetes.api.model.extensions.IngressRule rule, String pathPostFix)
public static String getNamespace(io.fabric8.kubernetes.api.model.HasMetadata entity)
public static io.fabric8.kubernetes.api.model.ServicePort getServicePortByName(io.fabric8.kubernetes.api.model.Service service, String portName)
Copyright © 2015–2022 Red Hat. All rights reserved.