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.
Click to show internal directories.
Click to hide internal directories.