Create the URL for a deployment using the protocol, host, and path
from the KubernetesApplication object. If ka.path
is not
truthy, no ingress was created so return undefined
. If the path
does not begin and end with a forward slash, /, add them. If
protocol is not provided, use "https" if tlsSecret is provided,
otherwise "http". If host is not provided and the SDM is running
in local mode, it attempts to find the IP address of any locally
running Kubernetes cluster and falls back to "127.0.0.1". If the
host is not given and the SDM is not in local mode, undefined
is returned.
Kubernetes application
endpoint URL for deployment service
Determine path for endpoint URL. If ka.path
is truthy, return it
after ensuring it starts and ends with single forward slash, "/".
(Typically an ingress path begins with a forward slash but does not
end with one.) Otherwise, return undefined
.
Kubernetes application information
Standardized URL path that begins and ends with a single forward slash or undefined
Determine host for endpoint. If ka.host
is truthy, return it.
Otherwise if the SDM is running in local mode, try to find IP
address of locally running Kubernetes cluster. Currently only
minikube is supported. If it is unable to determine an IP address
of a local Kubernetes cluster, it returns "127.0.0.1". If
ka.host
is falsey and the SDM is not running in local mode,
return undefined
.
Kubernetes application information
Hostname or, if local, IP address for application endpoint, or undefined
Generated using TypeDoc
Return proper SDM goal externalUrls structure or
undefined
if there is no externally accessible endpoint.