import "github.com/jenkins-x/jx/pkg/kube/services"
const ( ExposeAnnotation = "fabric8.io/expose" ExposeURLAnnotation = "fabric8.io/exposeUrl" ExposeGeneratedByAnnotation = "fabric8.io/generated-by" ExposeIngressName = "fabric8.io/ingress.name" JenkinsXSkipTLSAnnotation = "jenkins-x.io/skip.tls" ExposeIngressAnnotation = "fabric8.io/ingress.annotations" CertManagerAnnotation = "certmanager.k8s.io/issuer" CertManagerClusterAnnotation = "certmanager.k8s.io/cluster-issuer" ServiceAppLabel = "app" )
func AnnotateServicesWithBasicAuth(client kubernetes.Interface, ns string, services ...string) error
AnnotateServicesWithBasicAuth annotates the services with nginx baisc auth annotations
func AnnotateServicesWithCertManagerIssuer(c kubernetes.Interface, ns, issuer string, clusterIssuer bool, services ...string) ([]*v1.Service, error)
AnnotateServicesWithCertManagerIssuer adds the cert-manager annotation to the services from the given namespace. If a list of services is provided, it will apply the annotation only to that specific services.
func CreateServiceLink(client kubernetes.Interface, currentNamespace, targetNamespace, serviceName, externalURL string) error
ExtractServiceSchemePort is a utility function to interpret http scheme and port information from k8s service definitions
FindService looks up a service by name across all namespaces
func FindServiceHostname(client kubernetes.Interface, namespace string, name string) (string, error)
func FindServiceSchemePort(client kubernetes.Interface, namespace string, name string) (string, string, error)
FindServiceSchemePort parses the service definition and interprets http scheme in the absence of an external ingress
func GetService(client kubernetes.Interface, currentNamespace, targetNamespace, serviceName string) error
GetServiceAppName retrieves the application name from the service labels
GetServiceURL returns the
func GetServicesByName(client kubernetes.Interface, ns string, services []string) ([]*v1.Service, error)
GetServicesByName returns a list of Service objects from a list of service names
IngressHost returns the host for the ingres
IngressProtocol returns the scheme (https / http) for the Ingress
IngressURL returns the URL for the ingres
ServiceAppName retrives the application name from service labels. If no app lable exists, it returns the service name
func WaitForExternalIP(client kubernetes.Interface, name, namespace string, timeout time.Duration) error
WaitForExternalIP waits for the pods of a deployment to become ready
func WaitForService(client kubernetes.Interface, name, namespace string, timeout time.Duration) error
WaitForService waits for a service to become ready
func FindServiceURLs(client kubernetes.Interface, namespace string) ([]ServiceURL, error)
Package services imports 18 packages (graph). Updated 2020-07-18. Refresh now. Tools for package owners.