Documentation ¶
Index ¶
- Constants
- func NewRoute(aggregated bool, systemNamespace, externalGW string, published bool, ...) (string, v1alpha3.HTTPRoute)
- func VirtualServiceFromSpec(aggregated bool, systemNamespace string, name, namespace string, ...) *v1alpha3.VirtualService
- func VirtualServices(namespace string, clusterDomain *projectv1.ClusterDomain, service *v1.Service, ...) error
- type Dest
Constants ¶
View Source
const ( ProbeHeaderName = "K-Network-Probe" // RevisionHeaderName is the header key for revision name. RevisionHeaderName string = "knative-serving-revision" // RevisionHeaderNamespace is the header key for revision's namespace. RevisionHeaderNamespace string = "knative-serving-namespace" )
Variables ¶
This section is empty.
Functions ¶
func NewRoute ¶
func NewRoute(aggregated bool, systemNamespace, externalGW string, published bool, portBinding v1.ContainerPort, dests []Dest, appendHTTPS bool, autoscale bool, svc *v1.Service) (string, v1alpha3.HTTPRoute)
Use aggregated flag to control if we should override header with subset or not
func VirtualServiceFromSpec ¶
func VirtualServiceFromSpec(aggregated bool, systemNamespace string, name, namespace string, clusterDomain *projectv1.ClusterDomain, service *v1.Service, dests ...Dest) *v1alpha3.VirtualService
func VirtualServices ¶
Types ¶
type Dest ¶
func DestsForService ¶
func DestsForService(service *serviceset.ServiceSet) []Dest
Click to show internal directories.
Click to hide internal directories.