resources

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

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

func MakeK8sService(route *v1alpha1.Route) *corev1.Service

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.

Directories

Path Synopsis
Package names holds simple functions for synthesizing resource names.
Package names holds simple functions for synthesizing resource names.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL