Documentation ¶
Overview ¶
Package resources holds simple functions for synthesizing child resources from a Route resource and any relevant Route controller configuration.
Index ¶
- func IsClusterLocal(r *servingv1alpha1.Route) bool
- func MakeCertificate(route *v1alpha1.Route, dnsNames []string) *networkingv1alpha1.Certificate
- func MakeClusterIngress(ctx context.Context, r *servingv1alpha1.Route, tc *traffic.Config, ...) (*v1alpha1.ClusterIngress, error)
- func MakeClusterIngressTLS(cert *v1alpha1.Certificate, hostNames []string) v1alpha1.ClusterIngressTLS
- func MakeK8sPlaceholderService(ctx context.Context, route *v1alpha1.Route, targetName string) (*corev1.Service, error)
- func MakeK8sService(route *v1alpha1.Route, targetName string, ingress *netv1alpha1.ClusterIngress) (*corev1.Service, error)
- func SelectorFromRoute(route *v1alpha1.Route) labels.Selector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsClusterLocal ¶
func IsClusterLocal(r *servingv1alpha1.Route) bool
IsClusterLocal checks if a Route is publicly visible or only visible with cluster.
func MakeCertificate ¶
func MakeCertificate(route *v1alpha1.Route, dnsNames []string) *networkingv1alpha1.Certificate
MakeCertificate creates Certificate for the Route to request TLS certificates.
func MakeClusterIngress ¶
func MakeClusterIngress(ctx context.Context, r *servingv1alpha1.Route, tc *traffic.Config, tls []v1alpha1.ClusterIngressTLS, ingressClass string) (*v1alpha1.ClusterIngress, error)
MakeClusterIngress creates ClusterIngress to set up routing rules. Such ClusterIngress specifies which Hosts that it applies to, as well as the routing rules.
func MakeClusterIngressTLS ¶
func MakeClusterIngressTLS(cert *v1alpha1.Certificate, hostNames []string) v1alpha1.ClusterIngressTLS
MakeClusterIngressTLS creates ClusterIngressTLS to configure the ingress TLS.
func MakeK8sPlaceholderService ¶
func MakeK8sPlaceholderService(ctx context.Context, route *v1alpha1.Route, targetName string) (*corev1.Service, error)
MakeK8sPlaceholderService creates a placeholder Service to prevent naming collisions. It's owned by the provided v1alpha1.Route. The purpose of this service is to provide a placeholder domain name for Istio routing.
func MakeK8sService ¶
func MakeK8sService(route *v1alpha1.Route, targetName string, ingress *netv1alpha1.ClusterIngress) (*corev1.Service, error)
MakeK8sService creates a Service that redirect to the loadbalancer specified in ClusterIngress status. It's owned by the provided v1alpha1.Route. The purpose of this service is to provide a domain name for Istio routing.
Types ¶
This section is empty.