Documentation ¶
Index ¶
Constants ¶
View Source
const ( TimeoutAnnotation = "haproxy.router.openshift.io/timeout" DisableRouteAnnotation = "serving.knative.openshift.io/disableRoute" )
View Source
const (
NetworkPolicyAllowAllName = "knative-serving-allow-all"
)
Variables ¶
View Source
var ( // ErrNoValidLoadbalancerDomain indicates that the current ingress does not have a DomainInternal field, or // said field does not contain a value we can work with. ErrNoValidLoadbalancerDomain = errors.New("no parseable internal domain for ingresses found") )
Functions ¶
func MakeNetworkPolicyAllowAll ¶
func MakeNetworkPolicyAllowAll(ns string) *networkingv1.NetworkPolicy
MakeNetworkPolicyAllowAll creates a Kubernetes NetworkPolicy allowing all traffic into the namespace of a Knative Ingress
func MakeRoute ¶
func MakeRoute(ing networkingv1alpha1.Ingress, host string, svc types.NamespacedName, timeout time.Duration) *routev1.Route
func MakeRoutes ¶
func MakeRoutes(ing networkingv1alpha1.Ingress, lbs []networkingv1alpha1.LoadBalancerIngressStatus) ([]*routev1.Route, error)
MakeRoutes creates OpenShift Routes from a Knative Ingress
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.