virtualservice

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: UPL-1.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateVirtualService

func CreateVirtualService(ingresstrait *vzapi.IngressTrait, rule vzapi.IngressRule,
	allHostsForTrait []string, name string, gateway *vsapi.Gateway) (*vsapi.VirtualService, error)

CreateVirtualService creates the VirtualService child resource of the trait.

func CreateVirtualServiceMatchURIFromIngressTraitPath

func CreateVirtualServiceMatchURIFromIngressTraitPath(path vzapi.IngressPath) *istio.StringMatch

CreateVirtualServiceMatchURIFromIngressTraitPath create the virtual service match uri map from an ingress trait path This is primarily used to set up defaults when either path or type are not present in the ingress path. If the provided ingress path doesn't contain a path it is default to / If the provided ingress path doesn't contain a type it is defaulted to prefix if path is / and exact otherwise.

func GetPathsFromRule

func GetPathsFromRule(rule vzapi.IngressRule) []vzapi.IngressPath

GetPathsFromRule gets the paths from a trait. If the trait has no paths a default path is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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