Documentation ¶
Overview ¶
Package resources holds simple functions for synthesizing child resources from a Route resource and any relevant Route controller configuration.
Index ¶
Constants ¶
View Source
const ( PortNumber = 80 PortName = "http" // There is a bug in Istio 0.8 preventing the timeout to // be set more than 15 seconds. The bug is now fixed at HEAD, // but not yet released. 15 seconds is too short for our 0->1 // use case (see https://github.com/knative/serving/issues/1297). // // HACK: This applies the workaround suggested in // https://github.com/istio/istio/issues/6230 // to allow setting a longer timeout than 15s. // // TODO: Remove hack when Istio 1.0 is out. IstioTimeoutHackHeaderKey = "x-envoy-upstream-rq-timeout-ms" IstioTimeoutHackHeaderValue = "0" DefaultActivatorTimeout = "60s" )
Variables ¶
This section is empty.
Functions ¶
func MakeK8sService ¶
MakeK8sService creates a Service that targets nothing, owned by the provided v1alpha1.Route. The purpose of this service is to provide a domain name for Istio routing.
func MakeVirtualService ¶
func MakeVirtualService(u *v1alpha1.Route, tc *traffic.TrafficConfig) *v1alpha3.VirtualService
MakeVirtualService creates an Istio VirtualService to set up routing rules. Such VirtualService specifies which Gateways and Hosts that it applies to, as well as the routing rules.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.