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 the
ingress spec has a TLS secret the scheme is set to "https",
otherwise it is set to "http". If there is not enough information
in the ingress spec to create an endpoint, 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 and scheme for endpoint. The host will be the
host
property of the first element of ka.ingressSpec.spec.rules
that defines a host. The scheme will be "https" if the host
appears in the list of hostnames for any ingress TLS secret,
otherwise "http". If there is no ingress spec or no ingress spec
rules contain a host, return undefined
.
Kubernetes application information
"scheme://hostname" as determined from the ingress spec, or undefined
Generated using TypeDoc
Return proper SDM goal externalUrls structure or
undefined
if there is no externally accessible endpoint.